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

Fixing tnlSolver and tnlPDESolver.

parent e9f6c89c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -77,6 +77,8 @@ setup( const tnlParameterContainer& parameters,
      cerr << "I am not able to allocate DOFs (degrees of freedom)." << endl;
      return false;
   }
   this->dofs.setValue( 0.0 );
   this->auxiliaryDofs.setValue( 0.0 );
   this->problem->bindDofs( mesh, this->dofs );
   this->problem->bindAuxiliaryDofs( mesh, this->auxiliaryDofs );
   
+5 −6
Original line number Diff line number Diff line
@@ -23,9 +23,11 @@
#include <solvers/tnlSolverConfig.h>

template< template< typename Real, typename Device, typename Index, typename MeshType, typename ConfigTag, typename SolverStarter > class ProblemSetter,
          template< typename ConfTag > class ProblemConfig,
          template< typename ConfigTag > class ProblemConfig,
          typename ConfigTag >
bool tnlSolver< ProblemSetter, ProblemConfig, ConfigTag > :: run( int argc, char* argv[] )
bool
tnlSolver< ProblemSetter, ProblemConfig, ConfigTag >::
run( int argc, char* argv[] )
{
   tnlParameterContainer parameters;
   tnlConfigDescription configDescription;
@@ -35,10 +37,7 @@ bool tnlSolver< ProblemSetter, ProblemConfig, ConfigTag > :: run( int argc, char
      return false;

   tnlSolverInitiator< ProblemSetter, ConfigTag > solverInitiator;
   if( ! solverInitiator. run( parameters ) )
      return EXIT_FAILURE;
   return EXIT_SUCCESS;

   return solverInitiator.run( parameters );
};

#endif /* TNLSOLVER_IMPL_H_ */