diff --git a/src/Chemistry/SurrogateModels/DHT_Wrapper.cpp b/src/Chemistry/SurrogateModels/DHT_Wrapper.cpp index 4aa697e3e..3b836d4f4 100644 --- a/src/Chemistry/SurrogateModels/DHT_Wrapper.cpp +++ b/src/Chemistry/SurrogateModels/DHT_Wrapper.cpp @@ -133,6 +133,10 @@ void DHT_Wrapper::fillDHT(const WorkPackage &work_package) { continue; } + if (work_package.input[i][0] != 2) { + continue; + } + // check if calcite or dolomite is absent and present, resp.n and vice // versa in input/output. If this is the case -> Do not write to DHT! // HACK: hardcoded, should be fixed! diff --git a/src/Chemistry/SurrogateModels/InterpolationModule.cpp b/src/Chemistry/SurrogateModels/InterpolationModule.cpp index 8182efe10..0b6fbd1d8 100644 --- a/src/Chemistry/SurrogateModels/InterpolationModule.cpp +++ b/src/Chemistry/SurrogateModels/InterpolationModule.cpp @@ -76,6 +76,11 @@ void InterpolationModule::tryInterpolation(WorkPackage &work_package) { const auto dht_results = this->dht_instance.getDHTResults(); for (int wp_i = 0; wp_i < work_package.size; wp_i++) { + if (work_package.input[wp_i][0] != 2) { + interp_result.status[wp_i] = INSUFFICIENT_DATA; + continue; + } + if (work_package.mapping[wp_i] != CHEM_PQC) { interp_result.status[wp_i] = NOT_NEEDED; continue;