Commit 3895ff70 authored by Lukas Riedel's avatar Lukas Riedel

Merge SimulationBase constructors by using default parameters

parent 8634c970
......@@ -19,43 +19,35 @@ public:
/**
* @brief Constructs the SimulationBase.
*
* @param[in] outputpolicy The output policy
* @param[in] adaptpolicy The adapt policy
*/
SimulationBase(OutputPolicy outputpolicy, AdaptivityPolicy adaptpolicy)
: _output_policy(outputpolicy)
, _adapt_policy(adaptpolicy)
{}
/**
* @brief Constructs the SimulationBase.
*
* @param[in] outputpolicy The output policy
*/
SimulationBase(OutputPolicy outputpolicy)
: SimulationBase( outputpolicy, AdaptivityPolicy::None )
{}
/**
* @brief Constructs the SimulationBase.
*/
SimulationBase()
: SimulationBase(OutputPolicy::EndOfStep, AdaptivityPolicy::None)
* @param[in] output_policy The output policy.
* Defaults to OutputPolicy::EndOfStep.
* @param[in] adapt_policy The adapt policy.
* Defaults to AdaptiviyPolicy::None.
*/
SimulationBase(
OutputPolicy output_policy=OutputPolicy::EndOfStep,
AdaptivityPolicy adapt_policy=AdaptivityPolicy::None
)
: _output_policy(output_policy)
, _adapt_policy(adapt_policy)
{}
/**
* @brief Sets the output policy.
*
* @param[in] outputpolicy The output policy,
* @param[in] output_policy The output policy,
*/
void set_policy(OutputPolicy outputpolicy) {_output_policy = outputpolicy;}
void set_policy(OutputPolicy output_policy) {_output_policy = output_policy;}
/**
* @brief Sets the adaptivity policy.
*
* @param[in] adaptpolicy The adaptivity policy.
* @param[in] adapt_policy The adaptivity policy.
*/
void set_policy(AdaptivityPolicy adaptpolicy) {_adapt_policy = adaptpolicy;}
void set_policy(AdaptivityPolicy adapt_policy)
{
_adapt_policy = adapt_policy;
}
/**
* @brief Returns the current output policy.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment