mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-22 15:33:29 -06:00
Merge pull request #5226 from akva2/avoid_alu_poly
changed: put SupportsFaceTag in separate header
This commit is contained in:
commit
2fcefbd743
@ -489,6 +489,7 @@ list (APPEND PUBLIC_HEADER_FILES
|
||||
opm/simulators/aquifers/AquiferNumerical.hpp
|
||||
opm/simulators/aquifers/BlackoilAquiferModel.hpp
|
||||
opm/simulators/aquifers/BlackoilAquiferModel_impl.hpp
|
||||
opm/simulators/aquifers/SupportsFaceTag.hpp
|
||||
opm/simulators/linalg/bda/amgclSolverBackend.hpp
|
||||
opm/simulators/linalg/bda/BdaBridge.hpp
|
||||
opm/simulators/linalg/bda/BdaResult.hpp
|
||||
|
@ -65,6 +65,12 @@ struct Vanguard<TypeTag, TTag::FlowProblemAlugrid> {
|
||||
using type = Opm::AluGridVanguard<TypeTag>;
|
||||
};
|
||||
}
|
||||
|
||||
template<>
|
||||
class SupportsFaceTag<Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming>>
|
||||
: public std::bool_constant<true>
|
||||
{};
|
||||
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
|
@ -68,6 +68,12 @@ namespace Properties {
|
||||
using type = Opm::PolyhedralGridVanguard<TypeTag>;
|
||||
};
|
||||
}
|
||||
|
||||
template<>
|
||||
class SupportsFaceTag<Dune::PolyhedralGrid<3, 3>>
|
||||
: public std::bool_constant<true>
|
||||
{};
|
||||
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
|
@ -20,7 +20,6 @@
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef OPM_BLACKOILAQUIFERMODEL_HEADER_INCLUDED
|
||||
#define OPM_BLACKOILAQUIFERMODEL_HEADER_INCLUDED
|
||||
|
||||
@ -33,50 +32,19 @@
|
||||
#include <opm/simulators/aquifers/AquiferCarterTracy.hpp>
|
||||
#include <opm/simulators/aquifers/AquiferFetkovich.hpp>
|
||||
#include <opm/simulators/aquifers/AquiferNumerical.hpp>
|
||||
#include <opm/simulators/aquifers/SupportsFaceTag.hpp>
|
||||
|
||||
#include <opm/simulators/flow/BaseAquiferModel.hpp>
|
||||
|
||||
#include <opm/grid/CpGrid.hpp>
|
||||
#include <opm/grid/polyhedralgrid.hh>
|
||||
#if HAVE_DUNE_ALUGRID
|
||||
#include <dune/alugrid/grid.hh>
|
||||
#endif
|
||||
|
||||
#include <opm/material/densead/Math.hpp>
|
||||
|
||||
#include <vector>
|
||||
#include <type_traits>
|
||||
#include <string_view>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
namespace Opm {
|
||||
|
||||
template<class Grid>
|
||||
class SupportsFaceTag
|
||||
: public std::bool_constant<false>
|
||||
{};
|
||||
|
||||
|
||||
template<>
|
||||
class SupportsFaceTag<Dune::CpGrid>
|
||||
: public std::bool_constant<true>
|
||||
{};
|
||||
|
||||
|
||||
template<>
|
||||
class SupportsFaceTag<Dune::PolyhedralGrid<3, 3>>
|
||||
: public std::bool_constant<true>
|
||||
{};
|
||||
|
||||
#if HAVE_DUNE_ALUGRID
|
||||
template<>
|
||||
class SupportsFaceTag<Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming>>
|
||||
: public std::bool_constant<true>
|
||||
{};
|
||||
#endif
|
||||
|
||||
|
||||
/// Class for handling the blackoil well model.
|
||||
/// Class for handling the blackoil aquifer model.
|
||||
template <typename TypeTag>
|
||||
class BlackoilAquiferModel
|
||||
{
|
||||
@ -143,7 +111,6 @@ private:
|
||||
void computeConnectionAreaFraction() const;
|
||||
};
|
||||
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
#include "BlackoilAquiferModel_impl.hpp"
|
||||
|
45
opm/simulators/aquifers/SupportsFaceTag.hpp
Normal file
45
opm/simulators/aquifers/SupportsFaceTag.hpp
Normal file
@ -0,0 +1,45 @@
|
||||
/*
|
||||
File adapted from BlackoilWellModel.hpp
|
||||
|
||||
Copyright 2017 TNO - Heat Transfer & Fluid Dynamics, Modelling & Optimization of the Subsurface
|
||||
Copyright 2017 Statoil ASA.
|
||||
|
||||
This file is part of the Open Porous Media project (OPM).
|
||||
|
||||
OPM 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 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
OPM 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 OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef OPM_SUPPORTS_FACETAG_HEADER_INCLUDED
|
||||
#define OPM_SUPPORTS_FACETAG_HEADER_INCLUDED
|
||||
|
||||
namespace Dune { class CpGrid; }
|
||||
|
||||
namespace Opm {
|
||||
|
||||
template<class Grid>
|
||||
class SupportsFaceTag
|
||||
: public std::bool_constant<false>
|
||||
{};
|
||||
|
||||
|
||||
template<>
|
||||
class SupportsFaceTag<Dune::CpGrid>
|
||||
: public std::bool_constant<true>
|
||||
{};
|
||||
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
#endif // OPM_SUPPORT_FACETAG_HEADER_INCLUDED
|
Loading…
Reference in New Issue
Block a user