Commit 967adb58 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Adding problem dimensions choice to tnl-quickstart.

parent 2cac5acd
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -795,9 +795,13 @@ def generateBuildConfigTags( problemBaseName ):
    file.write( "template<> struct tnlConfigTagIndex< " + problemBaseName + "BuildConfigTag, long int >{ enum { enabled = false }; };\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( " * 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( "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" )