Add Support for Reading MPI Partitioning From File

This commit introduces new, experimental support for loading a
partitioning of the cells from a text file.  The name of the file is
passed into the simulator using the new, hidden, command line option

    --external-partition=filename

and we perform some basic checking that the number of elements in the
partition matches the number of cells in the CpGrid object.
This commit is contained in:
Bård Skaflestad
2023-09-18 10:21:31 +02:00
parent 960663e7b8
commit 610c45aa77
5 changed files with 79 additions and 2 deletions

View File

@@ -97,7 +97,6 @@ struct LoadFile
using type = UndefinedProperty;
};
template<class TypeTag>
struct EnableTerminalOutput<TypeTag, TTag::EclFlowProblem> {
static constexpr bool value = true;
@@ -135,7 +134,6 @@ struct LoadFile<TypeTag, TTag::EclFlowProblem>
static constexpr auto* value = "";
};
template <class TypeTag>
struct LoadStep<TypeTag, TTag::EclFlowProblem>
{