Skip to content

Commit 4e38b3b

Browse files
Set AGS default lateral count to 1 to retain backwards compatibility
1 parent 1ea89ec commit 4e38b3b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/geophires_x/AGSWellBores.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ def __init__(self, model: Model):
515515
# NB: inputs we already have ("already have it") need to be set at ReadParameter time so values are set at the
516516
# last possible time
517517

518+
# Assume CLGS has 1 lateral by default (Non-CLGS default value is 0)
519+
self.numnonverticalsections.value = 1
520+
self.numnonverticalsections.ErrMessage = (f'assume default for Number of Nonvertical Wellbore Sections '
521+
f'({self.numnonverticalsections.value})')
522+
518523
self.time_operation = self.ParameterDict[self.time_operation.Name] = floatParameter(
519524
"Closed Loop Calculation Start Year",
520525
DefaultValue=0.01,
@@ -577,6 +582,7 @@ def read_parameters(self, model: Model) -> None:
577582
model.logger.info("No parameters read because no content provided")
578583

579584
# handle error checking and special cases:
585+
580586
if model.reserv.numseg.value > 1:
581587
msg = ('Warning: CLGS model can only handle a single layer gradient segment. '
582588
'Number of Segments set to 1, Gradient set to Gradient[0], and Depth set to Reservoir Depth.')

src/geophires_x/WellBores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def __init__(self, model: Model):
10331033
DefaultValue=0,
10341034
AllowableRange=list(range(0, 101, 1)),
10351035
UnitType=Units.NONE,
1036-
ErrMessage="assume default for Number of Nonvertical Wellbore Sections (1)",
1036+
ErrMessage="assume default for Number of Nonvertical Wellbore Sections (0)",
10371037
ToolTipText="Number of Nonvertical Wellbore Sections"
10381038
)
10391039
self.NonverticalsCased = self.ParameterDict[self.NonverticalsCased.Name] = boolParameter(

src/geophires_x_schema_generator/geophires-request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@
916916
"type": "integer",
917917
"units": null,
918918
"category": "Well Bores",
919-
"default": 1,
919+
"default": 0,
920920
"minimum": 0,
921921
"maximum": 100
922922
},

0 commit comments

Comments
 (0)