-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAdvectionDiffusionArgs.h
47 lines (36 loc) · 1.2 KB
/
AdvectionDiffusionArgs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// $Id$
//==============================================================================
//!
//! \file AdvectionDiffusionArgs.h
//!
//! \date Mar 9 2017
//!
//! \author Arne Morten Kvarving / SINTEF
//!
//! \brief Preparsing of input files for the Advection-Diffusion application.
//!
//==============================================================================
#ifndef _ADVECTION_DIFFUSION_ARGS_H
#define _ADVECTION_DIFFUSION_ARGS_H
#include "SIMargsBase.h"
#include "Integrand.h"
#include "TimeIntUtils.h"
namespace tinyxml2 { class XMLElement; }
/*!
\brief Class holding application parameters.
*/
class AdvectionDiffusionArgs : public SIMargsBase
{
public:
double errTol = 1e-6; //!< Error tolerance for embedded time stepping
TimeIntegration::Method timeMethod = TimeIntegration::NONE; //!< Time integration method
int integrandType = Integrand::STANDARD; //!< Integrand formulation
//! \brief Default constructor.
AdvectionDiffusionArgs() : SIMargsBase("advectiondiffusion") {}
//! \brief Parses a command-line argument.
bool parseArg(const char* argv) override;
protected:
//! \brief Parse an element from the input file
bool parse(const tinyxml2::XMLElement* elem) override;
};
#endif