Skip to content
Snippets Groups Projects
Commit b28d45ee authored by Robert K's avatar Robert K
Browse files

[cleanup][Model] Added method reset to unset coefficients. Not used yet.

parent 613a493e
No related branches found
No related tags found
1 merge request!48[feature][FVOperator] A specialized FV operator for finite volume.
Pipeline #60140 passed
......@@ -668,6 +668,11 @@ namespace Fem
{
}
// counter part to setEntity
void reset() const
{
}
void setTime (double time)
{
time_ = time;
......
......@@ -232,6 +232,14 @@ namespace Fem
diffusion().init( entity );
}
void reset() const
{
if constexpr ( hasAdvection )
advection().unbind();
if constexpr ( hasDiffusion )
diffusion().unbind();
}
inline bool hasStiffSource() const { return AdditionalType::hasStiffSource; }
inline bool hasNonStiffSource() const { return AdditionalType::hasNonStiffSource; }
inline bool hasFlux() const { return AdditionalType::hasFlux; }
......@@ -336,7 +344,10 @@ namespace Fem
inline double diffusionTimeStep( const LocalEvaluation& local,
const RangeType& u ) const
{
return diffusion().diffusionTimeStep( local.entity(), local.quadraturePoint(), u );
if constexpr ( hasDiffusion )
return diffusion().diffusionTimeStep( local.entity(), local.quadraturePoint(), u );
else
return 1e308;
}
// is not used
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment