Skip to content

Commit 87e95b2

Browse files
authored
Merge pull request #21 from NCAR/gt4py_cartesian_partially_fused
gt4py cartesian partially fused
2 parents 7e46f31 + 0823c7f commit 87e95b2

File tree

2 files changed

+188
-331
lines changed

2 files changed

+188
-331
lines changed

swm_python/config.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
import argparse
22

33
parser = argparse.ArgumentParser(description="Shallow Water Model")
4-
parser.add_argument('--M', type=int, default=64, help='Number of points in the x direction')
5-
parser.add_argument('--N', type=int, default=64, help='Number of points in the y direction')
4+
parser.add_argument('--M', type=int, default=16, help='Number of points in the x direction')
5+
parser.add_argument('--N', type=int, default=16, help='Number of points in the y direction')
66
parser.add_argument('--L_OUT', type=bool, default=True, help='a boolean for L_OUT')
7-
parser.add_argument('--ITMAX', type=int, default=4000, help='a boolean for L_OUT')
7+
parser.add_argument('--ITMAX', type=int, default=4000, help='Number of iterations')
8+
parser.add_argument('--VAL_DEEP', type=bool, default=True, help='Do deep validation')
9+
parser.add_argument('--backend', type=str, default='gt:cpu_ifirst', help='Backend to use: gt:cpu_ifirst, gt:cpu_kfirst, numpy, cuda, gt:gpu')
810

911

1012
args = parser.parse_args()
1113

1214
# Initialize model parameters
15+
backend = args.backend
1316
M = args.M
1417
N = args.N
1518
M_LEN = M + 1
1619
N_LEN = N + 1
1720
L_OUT = args.L_OUT
1821
VAL=False
19-
VAL_DEEP=False
20-
VIS = True
21-
VIS_DT = 1000
22+
VAL_DEEP=False #args.VAL_DEEP
23+
VIS = False
24+
VIS_DT = 100
25+
2226
ITMAX = args.ITMAX
2327
dt = 90.
2428
dt = dt

0 commit comments

Comments
 (0)