forked from noaa-ocs-modeling/ondemand-storm-workflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from oceanmodeling/feature/rmw_option
Feature/rmw option
- Loading branch information
Showing
10 changed files
with
177 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
#SBATCH --parsable | ||
#SBATCH --time=05:00:00 | ||
#SBATCH --nodes=1 | ||
#SBATCH --exclusive | ||
|
||
set -ex | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from importlib.resources import files | ||
|
||
import pytest | ||
import yaml | ||
from yaml import Loader | ||
|
||
|
||
refs = files('stormworkflow.refs') | ||
test_refs = files('tests.data.refs') | ||
input_v0_0_1 = test_refs.joinpath('input_v0.0.1.yaml') | ||
input_v0_0_2 = test_refs.joinpath('input_v0.0.2.yaml') | ||
input_v0_0_3 = test_refs.joinpath('input_v0.0.3.yaml') | ||
input_latest = refs.joinpath('input.yaml') | ||
|
||
|
||
def read_conf(infile): | ||
with open(infile, 'r') as yfile: | ||
conf = yaml.load(yfile, Loader=Loader) | ||
return conf | ||
|
||
|
||
@pytest.fixture | ||
def conf_v0_0_1(): | ||
return read_conf(input_v0_0_1) | ||
|
||
|
||
@pytest.fixture | ||
def conf_v0_0_2(): | ||
return read_conf(input_v0_0_2) | ||
|
||
|
||
@pytest.fixture | ||
def conf_v0_0_3(): | ||
return read_conf(input_v0_0_3) | ||
|
||
|
||
@pytest.fixture | ||
def conf_latest(): | ||
return read_conf(input_latest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
input_version: 0.0.3 | ||
|
||
storm: "florence" | ||
year: 2018 | ||
suffix: "" | ||
subset_mesh: 1 | ||
hr_prelandfall: -1 | ||
past_forecast: 1 | ||
hydrology: 0 | ||
use_wwm: 0 | ||
pahm_model: "gahm" | ||
num_perturb: 2 | ||
sample_rule: "korobov" | ||
perturb_vars: | ||
- "cross_track" | ||
- "along_track" | ||
# - "radius_of_maximum_winds" | ||
- "radius_of_maximum_winds_persistent" | ||
- "max_sustained_wind_speed" | ||
rmw_fill_method: "persistent" | ||
|
||
spinup_exec: "pschism_PAHM_TVD-VL" | ||
hotstart_exec: "pschism_PAHM_TVD-VL" | ||
|
||
hpc_solver_nnodes: 3 | ||
hpc_solver_ntasks: 108 | ||
hpc_account: "" | ||
hpc_partition: "" | ||
|
||
RUN_OUT: "" | ||
L_NWM_DATASET: "" | ||
L_TPXO_DATASET: "" | ||
L_LEADTIMES_DATASET: "" | ||
L_TRACK_DIR: "" | ||
L_DEM_HI: "" | ||
L_DEM_LO: "" | ||
L_MESH_HI: "" | ||
L_MESH_LO: "" | ||
L_SHP_DIR: "" | ||
|
||
TMPDIR: "/tmp" | ||
PATH_APPEND: "" | ||
|
||
L_SOLVE_MODULES: | ||
- "intel/2022.1.2" | ||
- "impi/2022.1.2" | ||
- "netcdf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters