Skip to content

Commit c362f49

Browse files
Minor fixes in runoff ocn mapping (#28)
* fix guard expression for ROF to OCN Mapping stage * relax upper bounds for rof ocn mapping smoothing params
1 parent db9316b commit c362f49

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

visualCaseGen/specs/relational_constraints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ def get_relational_constraints(cvars):
191191
ROF_OCN_MAPPING_FOLD > 0:
192192
"ROF_OCN_MAPPING_FOLD must be a positive number.",
193193

194-
ROF_OCN_MAPPING_RMAX <= 1000:
195-
"ROF_OCN_MAPPING_RMAX must be less than or equal to 1000 km.",
194+
ROF_OCN_MAPPING_RMAX <= 4000:
195+
"ROF_OCN_MAPPING_RMAX must be less than or equal to 4000 km.",
196196

197-
ROF_OCN_MAPPING_FOLD <= 1000:
198-
"ROF_OCN_MAPPING_FOLD must be less than or equal to 1000 km.",
197+
ROF_OCN_MAPPING_FOLD <= 8000:
198+
"ROF_OCN_MAPPING_FOLD must be less than or equal to 8000 km.",
199199

200200
#### Assertions to stress-test the CSP solver
201201

visualCaseGen/stages/grid_stages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pathlib import Path
44
import time
55
import os
6+
from z3 import And
67

78
from ProConPy.config_var import cvars
89
from ProConPy.stage import Stage, Guard
@@ -321,7 +322,7 @@ def initialize_grid_stages(cime):
321322
parent=Guard(
322323
title="ROF to OCN Mapping",
323324
parent=stg_custom_rof_grid,
324-
condition=cvars["COMP_OCN"] == "mom",
325+
condition=And(cvars["COMP_OCN"] == "mom", cvars["COMP_ROF"] != "srof")
325326
),
326327
varlist=[cvars["ROF_OCN_MAPPING_STATUS"]],
327328
)

0 commit comments

Comments
 (0)