From 23c305f34edb4dfadb5161f8ab8485679c34f0dc Mon Sep 17 00:00:00 2001 From: Markus Wolff <markus.wolff@twt-gmbh.de> Date: Thu, 10 Jan 2013 12:13:39 +0000 Subject: [PATCH] added missing calls for *.clear() in reset method - reviewed by Klaus git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@9957 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- .../common/fv/mpfa/mpfalinteractionvolume.hh | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/dumux/decoupled/common/fv/mpfa/mpfalinteractionvolume.hh b/dumux/decoupled/common/fv/mpfa/mpfalinteractionvolume.hh index 2fd3c06351..14d985e72a 100644 --- a/dumux/decoupled/common/fv/mpfa/mpfalinteractionvolume.hh +++ b/dumux/decoupled/common/fv/mpfa/mpfalinteractionvolume.hh @@ -42,9 +42,9 @@ private: typedef typename GET_PROP_TYPE(TypeTag, Problem) Problem; enum - { - dim = GridView::dimension, dimWorld = GridView::dimensionworld - }; + { + dim = GridView::dimension, dimWorld = GridView::dimensionworld + }; typedef typename GridView::template Codim<0>::EntityPointer ElementPointer; @@ -61,11 +61,11 @@ private: public: enum FaceTypes - { - inside = 1, - boundary = 0, - outside = -1 - }; + { + inside = 1, + boundary = 0, + outside = -1 + }; //! Constructs a FVMPFALInteractionVolume object FVMPFALInteractionVolume() : @@ -102,6 +102,9 @@ public: facePos_ = FieldVectorVector(DimVector(0.0)); normal_ = FieldVectorVector(DimVector(0.0)); elementNum_ = 0; + boundaryTypes_.clear(); + neumannValues_.clear(); + dirichletValues_.clear(); } //! Mark storage as completed @@ -392,13 +395,13 @@ public: { if (elements_[i].size() > 0) { - std::cout<<"element "<<i<<":\n"; - std::cout<<"element position: "<<elements_[i][0]->geometry().center()<<"\n"; - std::cout<<"face indices on element: "<<indexOnElement_[i]<<"\n"; - std::cout<<"face normals on element: "<<normal_[i]<<"\n"; - std::cout<<"face areas on element: "<<faceArea_[i]<<"\n"; - std::cout<<"face position on element: "<<facePos_[i]<<"\n"; - std::cout<<"face type: "<<faceType_[i]<<"\n"; + std::cout<<"element "<<i<<":\n"; + std::cout<<"element position: "<<elements_[i][0]->geometry().center()<<"\n"; + std::cout<<"face indices on element: "<<indexOnElement_[i]<<"\n"; + std::cout<<"face normals on element: "<<normal_[i]<<"\n"; + std::cout<<"face areas on element: "<<faceArea_[i]<<"\n"; + std::cout<<"face position on element: "<<facePos_[i]<<"\n"; + std::cout<<"face type: "<<faceType_[i]<<"\n"; } } } -- GitLab