Skip to content

Error in compilation of tool extrudeToRegionMesh

The following code does not compile:

Error:

"/leonardo/home/userinternal/sbna0000/openfoam-um/src/OpenFOAM/lnInclude/tmpI.H", line 246: error #3398-D: global or namespace scope variables such as "Foam::FatalError" (declared at line 455 of "/leonardo/home/userinternal/sbna0000/openfoam-um/src/OpenFOAM/lnInclude/error.H") cannot be accessed from device code function "Foam::tmp::ref() const [with T=Foam::FieldFoam::vector]" is implicitly a device function because it is called from device function "Foam::operator-(const Foam::UList &) [with Type=Foam::VectorFoam::solveScalar]" (declared at line 921 of "/leonardo/home/userinternal/sbna0000/openfoam-um/src/OpenFOAM/lnInclude/FieldFunctions.C") FatalErrorInFunction ^

"/leonardo/home/userinternal/sbna0000/openfoam-um/src/OpenFOAM/lnInclude/tmpI.H", line 249: error #3398-D: global or namespace scope variables such as "Foam::FatalError" (declared at line 455 of "/leonardo/home/userinternal/sbna0000/openfoam-um/src/OpenFOAM/lnInclude/error.H") cannot be accessed from device code function "Foam::tmp::ref() const [with T=Foam::FieldFoam::vector]" is implicitly a device function because it is called from device function "Foam::operator-(const Foam::UList &) [with Type=Foam::VectorFoam::solveScalar]" (declared at line 921 of "/leonardo/home/userinternal/sbna0000/openfoam-um/src/OpenFOAM/lnInclude/FieldFunctions.C") << abort(FatalError);