From b0649617fd435df7e95ecc73e3ab92a6287d82eb Mon Sep 17 00:00:00 2001 From: Bernd Flemisch <bernd@iws.uni-stuttgart.de> Date: Fri, 30 Nov 2012 09:55:12 +0000 Subject: [PATCH] implicit branch: remove implicitelementboundarytypes.hh, no need/sense to unify box and cc there. git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/branches/implicit@9738 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- .../common/implicitelementboundarytypes.hh | 148 ------------------ 1 file changed, 148 deletions(-) delete mode 100644 dumux/implicit/common/implicitelementboundarytypes.hh diff --git a/dumux/implicit/common/implicitelementboundarytypes.hh b/dumux/implicit/common/implicitelementboundarytypes.hh deleted file mode 100644 index ce75725628..0000000000 --- a/dumux/implicit/common/implicitelementboundarytypes.hh +++ /dev/null @@ -1,148 +0,0 @@ -// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -// vi: set et ts=4 sw=4 sts=4: -/***************************************************************************** - * See the file COPYING for full copying permissions. * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see <http://www.gnu.org/licenses/>. * - *****************************************************************************/ -/*! - * \file - * - * \brief Boundary types gathered on an element - */ -#ifndef DUMUX_BOX_ELEMENT_BOUNDARY_TYPES_HH -#define DUMUX_BOX_ELEMENT_BOUNDARY_TYPES_HH - -#include "implicitproperties.hh" - -#include <dumux/common/valgrind.hh> - -namespace Dumux -{ - -/*! - * \ingroup BoxModel - * \ingroup BoxBoundaryTypes - * - * \brief This class stores an array of BoundaryTypes objects - */ -template<class TypeTag> -class BoxElementBoundaryTypes : public std::vector<typename GET_PROP_TYPE(TypeTag, BoundaryTypes) > -{ - typedef typename GET_PROP_TYPE(TypeTag, BoundaryTypes) BoundaryTypes; - typedef std::vector<BoundaryTypes> ParentType; - - typedef typename GET_PROP_TYPE(TypeTag, Problem) Problem; - typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView; - typedef typename GET_PROP_TYPE(TypeTag, FVElementGeometry) FVElementGeometry; - - enum { dim = GridView::dimension }; - typedef typename GridView::template Codim<0>::Entity Element; - typedef typename GridView::template Codim<dim>::EntityPointer VertexPointer; - -public: - /*! - * \brief Copy constructor. - * - * Copying a the boundary types of an element should be explicitly - * requested - */ - explicit BoxElementBoundaryTypes(const BoxElementBoundaryTypes &v) - : ParentType(v) - {} - - /*! - * \brief Default constructor. - */ - BoxElementBoundaryTypes() - { - hasDirichlet_ = false; - hasNeumann_ = false; - hasOutflow_ = false; - } - - /*! - * \brief Update the boundary types for all vertices of an element. - * - * \param problem The problem object which needs to be simulated - * \param element The DUNE Codim<0> entity for which the boundary - * types should be collected - */ - void update(const Problem &problem, - const Element &element) - { - int numVerts = element.template count<dim>(); - this->resize(numVerts); - - hasDirichlet_ = false; - hasNeumann_ = false; - hasOutflow_ = false; - - for (int i = 0; i < numVerts; ++i) { - (*this)[i].reset(); - - if (problem.model().onBoundary(element, i)) { - const VertexPointer vptr = element.template subEntity<dim>(i); - problem.boundaryTypes((*this)[i], *vptr); - - hasDirichlet_ = hasDirichlet_ || (*this)[i].hasDirichlet(); - hasNeumann_ = hasNeumann_ || (*this)[i].hasNeumann(); - hasOutflow_ = hasOutflow_ || (*this)[i].hasOutflow(); - } - } - } - - /*! - * \brief Update the boundary types for all vertices of an element. - * - * \param problem The problem object which needs to be simulated - * \param element The DUNE Codim<0> entity for which the boundary - * types should be collected - * \param fvGeometry The element's finite volume geometry - */ - void update(const Problem &problem, - const Element &element, - const FVElementGeometry &fvGeometry) - { update(problem, element); } - - /*! - * \brief Returns whether the element has a vertex which contains - * a Dirichlet value. - */ - bool hasDirichlet() const - { return hasDirichlet_; } - - /*! - * \brief Returns whether the element potentially features a - * Neumann boundary segment. - */ - bool hasNeumann() const - { return hasNeumann_; } - - /*! - * \brief Returns whether the element potentially features an - * outflow boundary segment. - */ - bool hasOutflow() const - { return hasOutflow_; } - -protected: - bool hasDirichlet_; - bool hasNeumann_; - bool hasOutflow_; -}; - -} // namespace Dumux - -#endif -- GitLab