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

Fixing setup of the boundary conditions.

parent 0e42a5cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
# Vladimir Klement
# Jakub Klinkovsky

cmake_minimum_required( VERSION 2.8.10 )
cmake_minimum_required( VERSION 3.2.0 )

project( tnl )

+2 −2
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ tnlDirichletBoundaryConditions< Mesh, Function, MeshEntitiesDimensions, Real, In
configSetup( tnlConfigDescription& config,
             const tnlString& prefix )
{
   Function::configSetup( config );
   Function::configSetup( config, prefix );
}

template< typename Mesh,
@@ -43,7 +43,7 @@ tnlDirichletBoundaryConditions< Mesh, Function, MeshEntitiesDimensions, Real, In
setup( const tnlParameterContainer& parameters,
       const tnlString& prefix )
{
   return this->function.setup( parameters );
   return this->function.setup( parameters, prefix );
}

template< typename Mesh,
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ tnlNeumannBoundaryConditionsBase< Function >::
configSetup( tnlConfigDescription& config,
             const tnlString& prefix )
{
   Function::configSetup( config );
   Function::configSetup( config, prefix );
}

template< typename Function >
@@ -18,7 +18,7 @@ tnlNeumannBoundaryConditionsBase< Function >::
setup( const tnlParameterContainer& parameters,
       const tnlString& prefix )
{
   return this->function.setup( parameters );
   return this->function.setup( parameters, prefix );
}

template< typename Function >
+2 −1
Original line number Diff line number Diff line
@@ -356,7 +356,8 @@ def generateProblem( problemName, problemBaseName ):
    file.write( "                     MeshDependentDataType& meshDependentData )\n" )
    file.write( "{\n" )
    file.write( "   const tnlString& initialConditionFile = parameters.getParameter< tnlString >( \"initial-condition\" );\n" )
    file.write( "   if( ! dofs.load( initialConditionFile ) )\n" )
    file.write( "   tnlMeshFunction< Mesh > u( mesh, dofs );\n" )
    file.write( "   if( ! u.boundLoad( initialConditionFile ) )\n" )
    file.write( "   {\n" )
    file.write( "      cerr << \"I am not able to load the initial condition from the file \" << initialConditionFile << \".\" << endl;\n" )
    file.write( "      return false;\n" )