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

Implementing the semi-implicit time stepper.

parent ba925308
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ class heatEquationSolver
   void writeProlog( tnlLogger& logger,
                     const tnlParameterContainer& parameters ) const;

   bool init( const tnlParameterContainer& parameters );
   bool setup( const tnlParameterContainer& parameters );

   bool setInitialCondition( const tnlParameterContainer& parameters,
                             const MeshType& mesh );
+3 −3
Original line number Diff line number Diff line
@@ -46,10 +46,10 @@ void heatEquationSolver< Mesh,Diffusion,BoundaryCondition,RightHandSide >

template< typename Mesh, typename Diffusion, typename BoundaryCondition, typename RightHandSide >
bool heatEquationSolver< Mesh,Diffusion,BoundaryCondition,RightHandSide >
:: init( const tnlParameterContainer& parameters )
::setup( const tnlParameterContainer& parameters )
{
   if( ! boundaryCondition.init( parameters ) ||
       ! rightHandSide.init( parameters ) )
   if( ! boundaryCondition.setup( parameters ) ||
       ! rightHandSide.setup( parameters ) )
      return false;
   return true;
}
+2 −2
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@ class tnlHeatEquationEocRhs
      typedef ExactOperator ExactOperatorType;
      typedef TestFunction TestFunctionType;

      bool init( const tnlParameterContainer& parameters )
      bool setup( const tnlParameterContainer& parameters )
      {
         if( ! testFunction.init( parameters ) )
         if( ! testFunction.setup( parameters ) )
            return false;
         return true;
      };
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class navierStokesBoundaryConditions

   navierStokesBoundaryConditions();

   bool init( const tnlParameterContainer& parameters );
   bool setup( const tnlParameterContainer& parameters );

   void setMesh( const MeshType& mesh );

+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ navierStokesBoundaryConditions< Mesh >::navierStokesBoundaryConditions()
}

template< typename Mesh >
bool navierStokesBoundaryConditions< Mesh >::init( const tnlParameterContainer& parameters )
bool navierStokesBoundaryConditions< Mesh >::setup( const tnlParameterContainer& parameters )
{
   this -> maxInflowVelocity = parameters. GetParameter< double >( "max-inflow-velocity" );
   //this -> maxOutflowVelocity = parameters. GetParameter< double >( "max-outflow-velocity" );
Loading