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

Fixing tnl-quickstart.

parent 836b227c
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -57,8 +57,8 @@ def generateMain( problemName, problemBaseName, operatorName ):
    file = open( problemBaseName + ".h", "w" )
    file.write( "#include <tnlConfig.h>\n" )
    file.write( "#include <solvers/tnlSolver.h>\n" )
    file.write( "#include <solvers/tnlConfigTags.h>\n" )
    file.write( "#include <solvers/tnlFastBuildConfig.h>\n" )    
    file.write( "#include <solvers/tnlBuildConfigTags.h>\n" )
    file.write( "#include <solvers/tnlFastBuildConfigTag.h>\n" )    
    file.write( "#include <operators/tnlAnalyticDirichletBoundaryConditions.h>\n" )
    file.write( "#include <operators/tnlDirichletBoundaryConditions.h>\n" )
    file.write( "#include <operators/tnlAnalyticNeumannBoundaryConditions.h>\n" )
@@ -375,17 +375,17 @@ def generateProblem( problemName, problemBaseName ):
    file.write( "                   Matrix& matrix )\n" )
    file.write( "{\n" )
    file.write( "   const IndexType dofs = this->getDofs( mesh );\n" )
    file.write( "   typedef typename Matrix::RowLengthsVector RowLengthsVectorType;\n" )
    file.write( "   RowLengthsVectorType rowLengths;\n" )
    file.write( "   typedef typename Matrix::CompressedRowsLengthsVector CompressedRowsLengthsVectorType;\n" )
    file.write( "   CompressedRowsLengthsVectorType rowLengths;\n" )
    file.write( "   if( ! rowLengths.setSize( dofs ) )\n" )
    file.write( "      return false;\n" )
    file.write( "   tnlMatrixSetter< MeshType, DifferentialOperator, BoundaryCondition, RowLengthsVectorType > matrixSetter;\n" )
    file.write( "   matrixSetter.template getRowLengths< Mesh::Dimensions >( mesh,\n" )
    file.write( "   tnlMatrixSetter< MeshType, DifferentialOperator, BoundaryCondition, CompressedRowsLengthsVectorType > matrixSetter;\n" )
    file.write( "   matrixSetter.template getCompressedRowsLengths< Mesh::Dimensions >( mesh,\n" )
    file.write( "                                                                       differentialOperator,\n" )
    file.write( "                                                                       boundaryCondition,\n" )
    file.write( "                                                                       rowLengths );\n" )
    file.write( "   matrix.setDimensions( dofs, dofs );\n" )
    file.write( "   if( ! matrix.setRowLengths( rowLengths ) )\n" )
    file.write( "   if( ! matrix.setCompressedRowsLengths( rowLengths ) )\n" )
    file.write( "      return false;\n" )
    file.write( "   return true;\n" )
    file.write( "}\n" )