ecltransmissibility: separate from typetag

this allows using explicit template instantation to only
compile this code per grid, not per simulator object
This commit is contained in:
Arne Morten Kvarving
2021-05-05 12:13:25 +02:00
parent e8f69223e6
commit 7ff44d9093
7 changed files with 1186 additions and 950 deletions

View File

@@ -528,7 +528,9 @@ private:
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GlobalGridView> ElementMapper;
ElementMapper globalElemMapper(globalGridView, Dune::mcmgElementLayout());
const EclTransmissibility<TypeTag>* globalTrans;
using TransmissibilityType = typename Vanguard::TransmissibilityType;
const TransmissibilityType* globalTrans;
if (!collectToIORank_.isParallel())
{
@@ -622,7 +624,8 @@ private:
typedef Dune::MultipleCodimMultipleGeomTypeMapper<GlobalGridView> ElementMapper;
ElementMapper globalElemMapper(globalGridView, Dune::mcmgElementLayout());
const EclTransmissibility<TypeTag>* globalTrans;
using TransmissibilityType = typename Vanguard::TransmissibilityType;
const TransmissibilityType* globalTrans;
if (!collectToIORank_.isParallel()) {
// in the sequential case we must use the transmissibilites defined by
// the problem. (because in the sequential case, the grid manager does