diff --git a/src/functions/tnlMeshFunction_impl.h b/src/functions/tnlMeshFunction_impl.h index 5fe48a66259e5a5c6e702a918482fe95c0af1248..505a3ce816c54b8126b8a35c2c7bfac6c4ac4cdd 100644 --- a/src/functions/tnlMeshFunction_impl.h +++ b/src/functions/tnlMeshFunction_impl.h @@ -140,7 +140,7 @@ void tnlMeshFunction< Mesh, MeshEntityDimensions, Real >:: bind( tnlMeshFunction< Mesh, MeshEntityDimensions, Real >& meshFunction ) { - this->mesh = meshFunction.getMesh(); + this->mesh = &meshFunction.getMesh(); this->data.bind( meshFunction.getData() ); } diff --git a/tools/tnl-quickstart/tnl-quickstart.py b/tools/tnl-quickstart/tnl-quickstart.py index 198771045ed675557106d04775bd1a3521acdce8..3f1732c6aac2d28f6f3d4cf5031a45cabce7946e 100644 --- a/tools/tnl-quickstart/tnl-quickstart.py +++ b/tools/tnl-quickstart/tnl-quickstart.py @@ -793,11 +793,15 @@ def generateBuildConfigTags( problemBaseName ): file.write( " */\n" ) file.write( "template<> struct tnlConfigTagIndex< " + problemBaseName + "BuildConfigTag, short int >{ enum { enabled = false }; };\n" ) file.write( "template<> struct tnlConfigTagIndex< " + problemBaseName + "BuildConfigTag, long int >{ enum { enabled = false }; };\n" ) + file.write( "\n" ) + file.write( "/****\n" ) + file.write( " * How many dimensions may have the problem to be solved...\n" ) + file.write( " */\n" ) + file.write( "template< int Dimensions > struct tnlConfigTagDimensions< " + problemName + "BuildConfigTag, Dimensions >{ enum { enabled = ( Dimensions == 1 ) }; };\n" ) file.write( "\n" ) file.write( "/****\n" ) file.write( " * Use of tnlGrid is enabled for allowed dimensions and Real, Device and Index types.\n" ) file.write( " */\n" ) - file.write( "\n" ) file.write( "template< int Dimensions, typename Real, typename Device, typename Index >\n" ) file.write( " struct tnlConfigTagMesh< " + problemBaseName + "BuildConfigTag, tnlGrid< Dimensions, Real, Device, Index > >\n" ) file.write( " { enum { enabled = tnlConfigTagDimensions< " + problemBaseName + "BuildConfigTag, Dimensions >::enabled &&\n" )