ClimateModels Interface
The ClimateModels.jl's interface is implemented in this pacakge. This allows you to easily create model simulations using MITgcm
conveniently from Julia
.
using MITgcm
MC=MITgcm_config(configuration="advect_xy")
setup(MC)
build(MC,"--allow-skip")
launch(MC)
sc=scan_rundir(joinpath(MC,"run"))
keys(sc)
(:packages, :params_time, :params_grid, :params_files, :completed)
Functionalities
ClimateModels.setup
— Functionsetup(config::MITgcm_config)
Create a run/
folder and link everything there as needed to be ready to run model as normally done for most-standard MITgcm configurations (incl. prepare_run
and mitgcmuv
). Call ClimateModels.git_log_init(config)
to setup git tracker and put!(config.channel,MITgcm_launch)
to be executed via launch(config)
later.
(part of the climate model interface as specialized for MITgcm
)
ClimateModels.build
— Functionbuild(config::MITgcm_config)
Build the model using genmake2
, make depend
, and make
. The first two link all code files, headers, etc in the build/
folder before compiling the model.
Note : this is skipped if config.inputs[:setup][:main][:exe]
is specified.
build(config::MITgcm_config,options::String)
Build the model using genmake2
, make depend
, and make
unless otherwise specified via options
. The genmake2
and make depend
commands link all code files, headers, etc in the build/
folder before make
compiles the model.
(part of the climate model interface as specialized for MITgcm
)
ClimateModels.compile
— Functioncompile(config::MITgcm_config)
Compile the model using make
in build/
that has already been setup.
(part of the climate model interface as specialized for MITgcm
)
MITgcm.MITgcm_launch
— FunctionMITgcm_launch(config::MITgcm_config)
Go to run/
folder and effectively call mitgcmuv > output.txt
(part of the climate model interface as specialized for MITgcm
)
ClimateModels.clean
— Functionclean(config::MITgcm_config)
Cancel any remaining task (config.channel) and clean up the run directory (via rm).
(part of the climate model interface as specialized for MITgcm
)