Skip to content
Snippets Groups Projects
Commit ee0c5308 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Refactoring the heat equation solver.

parent 167933c0
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@ set( tnl_heat_equation_SOURCES
heatEquationSolver_impl.h
heatEquationSolver.h
heatEquationSetter_impl.h
heatEquationSetter.h )
heatEquationSetter.h
heatEquationConfig.h )
ADD_EXECUTABLE(tnl-heat-equation${debugExt} ${tnl_heat_equation_SOURCES})
target_link_libraries (tnl-heat-equation${debugExt} tnl${debugExt}-${tnlVersion} )
......
/***************************************************************************
heatEquationConfig.h - description
-------------------
begin : Jul 8, 2014
copyright : (C) 2014 by Tomas Oberhuber
email : tomas.oberhuber@fjfi.cvut.cz
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef HEATEQUATIONCONFIG_H_
#define HEATEQUATIONCONFIG_H_
#include <config/tnlConfigDescription.h>
template< typename ConfigTag >
class heatEquationConfig
{
public:
static void configSetup( tnlConfigDescription& config )
{
return;
config.addDelimiter( "Heat equation settings:" );
config.addEntry < tnlString > ( "problem-name", "This defines particular problem.", "simpl" );
}
};
#endif /* HEATEQUATIONCONFIG_H_ */
......@@ -16,7 +16,7 @@
***************************************************************************/
#include "heatEquationSetter.h"
#include "simpleProblemConfig.h"
#include "heatEquationConfig.h"
#include <solvers/tnlSolver.h>
#include <solvers/tnlFastBuildConfig.h>
#include <solvers/tnlConfigTags.h>
......@@ -26,7 +26,7 @@ typedef tnlFastBuildConfig BuildConfig;
int main( int argc, char* argv[] )
{
tnlSolver< simpleProblemSetter, simpleProblemConfig, BuildConfig > solver;
tnlSolver< heatEquationSetter, heatEquationConfig, BuildConfig > solver;
if( ! solver. run( argc, argv ) )
return EXIT_FAILURE;
return EXIT_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment