Protext against zero potential

This commit is contained in:
Joakim Hove
2019-09-30 16:15:35 +02:00
parent 3f83f2ed56
commit 6cdd4fd76f
2 changed files with 26 additions and 5 deletions

View File

@@ -66,6 +66,7 @@ public:
static Target convert_target(Group2::GuideRateTarget group_target);
static Target convert_target(Well2::GuideRateTarget well_target);
private:
double pot(double oil_pot, double gas_pot, double wat_pot) const;
/*
Unfortunately the default values will give a GuideRateModel which can not
be evaluated, due to a division by zero problem.