Skip to content
Snippets Groups Projects
Commit 83831412 authored by Benjamin Faigle's avatar Benjamin Faigle
Browse files

introduce new function for volume derivatives (used by adaptive 2p2c model in devel)

prepare upcoming changes in multiphysics: write methods (set...) use manipulateFluidState() to acess primary variables

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@8225 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 8bd37b7a
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ public:
*/
void setPressure(int phaseIdx, Scalar value)
{
fluidState_->setPressure(phaseIdx, value);
manipulateFluidState().setPressure(phaseIdx, value);
}
//! \copydoc Dumux::DecoupledTwoPTwoCFluidState::massConcentration()
......@@ -156,12 +156,12 @@ public:
//! \copydoc Dumux::DecoupledTwoPTwoCFluidState::setMassConcentration()
void setTotalConcentration(int compIdx, Scalar value)
{
fluidState_->setMassConcentration(compIdx, value);
manipulateFluidState().setMassConcentration(compIdx, value);
}
//! \copydoc Dumux::DecoupledTwoPTwoCFluidState::setMassConcentration()
void setMassConcentration(int compIdx, Scalar value)
{
fluidState_->setMassConcentration(compIdx, value);
manipulateFluidState().setMassConcentration(compIdx, value);
}
//@}
......@@ -352,6 +352,9 @@ public:
//! Specifies that volume derivatives are computed and available
void confirmVolumeDerivatives()
{ volumeDerivativesAvailable_ = true;}
//! Specifies if volume derivatives are computed and available
void volumeDerivativesAvailable(bool value)
{ volumeDerivativesAvailable_ = value;}
//! Resets the cell data after a timestep was completed: No volume derivatives yet available
void reset()
{
......
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