Skip to content
Snippets Groups Projects
Commit 20e8c59c authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Merge branch 'feature/phasePresenceInProblem' into 'master'

[implicit][problem] Add initialPhasePresence function and forward to the respect…

…ive AtPos version with a default DuneThrow

See merge request !242
parents 9aa7be44 fc3c82c2
1 merge request!242[implicit][problem] Add initialPhasePresence function and forward to the respect…
......@@ -536,6 +536,32 @@ public:
"a initialAtPos() method.");
}
/*!
* \brief Evaluate the initial phase state inside a control volume.
*
* \param vertex The vertex
* \param vIdxGlobal The global index of the vertex
* \param globalPos The global position
*/
int initialPhasePresence(const Vertex &vertex,
int &vIdxGlobal,
const GlobalPosition &globalPos) const
{
// forward to generic interface
return asImp_().initialPhasePresenceAtPos(globalPos);
}
/*!
* \brief Evaluate the initial value for a control volume.
*
* \param globalPos The global position
*/
void initialPhasePresenceAtPos(const GlobalPosition &globalPos) const
{
DUNE_THROW(Dune::InvalidStateException,
"The problem does not provide a initialPhasePresenceAtPos() method.");
}
/*!
* \brief Return how much the domain is extruded at a given sub-control volume.
*
......
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