Skip to content

Commit

Permalink
Fix revert conflict in Outputs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareengineerprogrammer committed Nov 13, 2023
1 parent 8a582ec commit f119e46
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/geophires_x/Outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def PrintOutputs(self, model: Model):
f.write(f" Geothermal gradient: {model.reserv.gradient.value[0]:10.4f} " + model.reserv.gradient.CurrentUnits.value + NL)
else:
for i in range(1, model.reserv.numseg.value):
f.write(f" Segment {str(i):s} Geothermal gradient: {model.reserv.gradient.value[i-1]:10.4f} " + model.reserv.gradient.CurrentUnits.value +NL)
f.write(f" Segment {str(i):s} Thickness (km): {model.reserv.layerthickness.value[i-1]:10.0f} " + model.reserv.layerthickness.CurrentUnits.value + NL)
f.write(f" Segment {str(i+1):s} Geothermal gradient: {model.reserv.gradient.value[i]:10.4f} " + model.reserv.gradient.CurrentUnits.value + NL)
f.write(f" Segment {str(i):s} Geothermal gradient: {model.reserv.gradient.value[i-1]:10.4f} " + model.reserv.gradient.CurrentUnits.value +NL)
f.write(f" Segment {str(i):s} Thickness: {model.reserv.layerthickness.value[i-1]:10.0f} " + model.reserv.layerthickness.CurrentUnits.value + NL)
f.write(f" Segment {str(i+1):s} Geothermal gradient: {model.reserv.gradient.value[i]:10.4f} " + model.reserv.gradient.CurrentUnits.value + NL)

f.write(NL)
f.write(NL)
Expand Down Expand Up @@ -214,9 +214,11 @@ def PrintOutputs(self, model: Model):
f.write(f" Geothermal gradient: {model.reserv.gradient.value[0]:10.4f} " + model.reserv.gradient.CurrentUnits.value + NL)
else:
for i in range(1, model.reserv.numseg.value):
f.write(f" Segment " + str(i) + " geothermal gradient: {model.reserv.gradient.value[i-1]:10.4f} " + model.reserv.gradient.CurrentUnits.value + NL)
f.write(f" Segment " + str(i) + " thickness: {model.reserv.layerthickness.value[i-1]:10.0f} " + model.reserv.layerthickness.CurrentUnits.value + NL)
f.write(f" Segment " + str(i+1) + " geothermal gradient: {model.reserv.gradient.value[i]:10.4f} " + model.reserv.gradient.CurrentUnits.value + NL)
f.write(f" Segment {str(i):s} Geothermal gradient: {model.reserv.gradient.value[i-1]:10.4f} " + model.reserv.gradient.CurrentUnits.value +NL)
f.write(f" Segment {str(i):s} Thickness: {model.reserv.layerthickness.value[i-1]:10.0f} " + model.reserv.layerthickness.CurrentUnits.value + NL)
f.write(f" Segment {str(i+1):s} Geothermal gradient: {model.reserv.gradient.value[i]:10.4f} " + model.reserv.gradient.CurrentUnits.value + NL)



f.write(NL)
f.write(NL)
Expand Down

0 comments on commit f119e46

Please sign in to comment.