Allow preparing injector containers of PerfData after construction.

Needed to be able to switch producers to injectors during ACTIONX.
This commit is contained in:
Markus Blatt committed 2025-03-18 22:28:37 +01:00
1 parent 5b528d6f44
commit 4df94af7f0
2 files changed
+15 -4

No files matched your search

+10 -4
View File
@@ -51,13 +51,19 @@ PerfData<Scalar>::PerfData(const std::size_t num_perf,
, ecl_index(num_perf)
{
if (injector) {
this->water_throughput.resize(num_perf);
this->skin_pressure.resize(num_perf);
this->water_velocity.resize(num_perf);
this->filtrate_data.resize(num_perf);
prepareInjectorContainers();
}
}
template<class Scalar>
void PerfData<Scalar>::prepareInjectorContainers()
{
auto num_perf = pressure.size();
this->water_throughput.resize(num_perf);
this->skin_pressure.resize(num_perf);
this->water_velocity.resize(num_perf);
this->filtrate_data.resize(num_perf);
}
template<class Scalar>
PerfData<Scalar> PerfData<Scalar>::serializationTestObject()
{