-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgotm_build.py
executable file
·44 lines (40 loc) · 1.01 KB
/
gotm_build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
#
# Build GOTM
#
# Qing Li, 20200428
import os
from gotmtool.model import Model
def main():
"""Build GOTM
"""
# create a model instance for build
m = Model(
# an arbitrary name, not used in the build step
name='build',
# if necessary, change to the GOTM environment file set up
# by gotm_env_init.py
environ='.gotm_env.yaml',
)
# build the model
print('-'*64)
print('Building GOTM source code')
print('-'*64)
m.build(
# do a clean build
clean=True,
# build with CVMix
use_cvmix=True,
# build with FABM
use_fabm=False,
# build with STIM
use_stim=False,
# build with NetCDF
use_netcdf=True,
# output extra output for turbulence variables
extra_output=False,
# debug mode
debug=False,
)
if __name__ == "__main__":
main()