Skip to content

Commit 09f7ca9

Browse files
Always output lateral section cost if non-zero
1 parent a882451 commit 09f7ca9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/geophires_x/Outputs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,14 +1803,14 @@ def PrintOutputs(self, model: Model):
18031803
f.write(NL)
18041804
if not model.economics.totalcapcost.Valid:
18051805
f.write(f' Drilling and completion costs: {model.economics.Cwell.value:10.2f} ' + model.economics.Cwell.CurrentUnits.value + NL)
1806-
if round(econ.cost_one_production_well.value, 2) != round(econ.cost_one_injection_well.value, 2) and \
1807-
model.economics.cost_one_injection_well.value != -1:
1808-
f.write(f' Drilling and completion costs per production well: {econ.cost_one_production_well.value:10.2f} ' + econ.cost_one_production_well.CurrentUnits.value + NL)
1809-
f.write(f' Drilling and completion costs per injection well: {econ.cost_one_injection_well.value:10.2f} ' + econ.cost_one_injection_well.CurrentUnits.value + NL)
1810-
elif econ.cost_lateral_section.value > 0.0:
1806+
if econ.cost_lateral_section.value > 0.0:
18111807
f.write(f' Drilling and completion costs per vertical production well: {econ.cost_one_production_well.value:10.2f} ' + econ.cost_one_production_well.CurrentUnits.value + NL)
18121808
f.write(f' Drilling and completion costs per vertical injection well: {econ.cost_one_injection_well.value:10.2f} ' + econ.cost_one_injection_well.CurrentUnits.value + NL)
18131809
f.write(f' {econ.cost_per_lateral_section.Name}: {econ.cost_per_lateral_section.value:10.2f} {econ.cost_lateral_section.CurrentUnits.value}\n')
1810+
elif round(econ.cost_one_production_well.value, 4) != round(econ.cost_one_injection_well.value, 4) and \
1811+
model.economics.cost_one_injection_well.value != -1:
1812+
f.write(f' Drilling and completion costs per production well: {econ.cost_one_production_well.value:10.2f} ' + econ.cost_one_production_well.CurrentUnits.value + NL)
1813+
f.write(f' Drilling and completion costs per injection well: {econ.cost_one_injection_well.value:10.2f} ' + econ.cost_one_injection_well.CurrentUnits.value + NL)
18141814
else:
18151815
f.write(f' Drilling and completion costs per well: {model.economics.Cwell.value/(model.wellbores.nprod.value+model.wellbores.ninj.value):10.2f} ' + model.economics.Cwell.CurrentUnits.value + NL)
18161816
f.write(f' Stimulation costs: {model.economics.Cstim.value:10.2f} ' + model.economics.Cstim.CurrentUnits.value + NL)

0 commit comments

Comments
 (0)