Merge pull request #5650 from GitPaean/fxing_small_fallout_comp

small range fix for flowexp_comp
This commit is contained in:
Kai Bao 2024-10-08 15:45:16 +02:00 committed by GitHub
commit 4e8c793cd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,8 @@
#include <opm/simulators/flow/FlowGenericProblem_impl.hpp>
#include <fmt/format.h>
#include "flowexp_comp.hpp"
int main(int argc, char** argv)
@ -48,9 +50,9 @@ int main(int argc, char** argv)
const auto runspec = Opm::Runspec(deck);
const auto numComps = runspec.numComps();
OPM_ERROR_IF(numComps < 2 || numComps < 7,
"Deck has {} components, not supported. We support a maximum of 7 components, "
"and a minimum of 2.");
OPM_ERROR_IF(numComps < 2 || numComps > 7,
fmt::format("Deck has {} components, not supported. We support a maximum of 7 components, "
"and a minimum of 2.", numComps) );
switch (numComps) {
case 2: return Opm::dispatchFlowExpComp<2>(argc, argv);