From 83831412dbd6a43e199bcc5a9a38f35418a47e5b Mon Sep 17 00:00:00 2001
From: Benjamin Faigle <benjamin.faigle@posteo.de>
Date: Mon, 7 May 2012 08:24:24 +0000
Subject: [PATCH] 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
---
 dumux/decoupled/2p2c/cellData2p2c.hh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dumux/decoupled/2p2c/cellData2p2c.hh b/dumux/decoupled/2p2c/cellData2p2c.hh
index f9f721dce1..16b6efb7fd 100644
--- a/dumux/decoupled/2p2c/cellData2p2c.hh
+++ b/dumux/decoupled/2p2c/cellData2p2c.hh
@@ -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()
     {
-- 
GitLab