VFPProperties: template Scalar type

This commit is contained in:
Arne Morten Kvarving
2024-02-19 14:00:51 +01:00
parent 29d142b5e4
commit 3747981347
6 changed files with 24 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ struct Setup
std::shared_ptr<Python> python;
std::unique_ptr<const Schedule> schedule;
std::unique_ptr<SummaryState> summary_state;
std::unique_ptr<VFPProperties> vfp_properties;
std::unique_ptr<VFPProperties<double>> vfp_properties;
Setup(const std::string& file)
{
@@ -63,7 +63,9 @@ struct Setup
const int step = 0;
const auto& sched_state = schedule->operator[](step);
WellState<double> well_state(phaseUsage(runspec.phases()));
vfp_properties = std::make_unique<VFPProperties>(sched_state.vfpinj(), sched_state.vfpprod(), well_state);
vfp_properties = std::make_unique<VFPProperties<double>>(sched_state.vfpinj(),
sched_state.vfpprod(),
well_state);
};
};