Skip to content

Commit

Permalink
add amip test to exp/ClimaEarth/
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Oct 19, 2024
1 parent 28ff9c0 commit b444a2d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
11 changes: 11 additions & 0 deletions experiments/ClimaEarth/test/amip_test.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## AMIP testing
# This script runs a coarse AMIP simulation for a short period of time.
# This is meant to be used by upstream packages to test if changes to those
# packages affect the interfaces used by ClimaCoupler.jl.
# Note that this test doesn't check stability or correctness of the model.

driver_path = joinpath("..", "run_amip.jl")
config_file = "amip_test.yml"

# Run the AMIP test
run(`julia --project $driver_path --config_file=$config_file --job_id="amip_test"`)
31 changes: 31 additions & 0 deletions experiments/ClimaEarth/test/amip_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FLOAT_TYPE: "Float32"
albedo_model: "CouplerAlbedo"
anim: false
atmos_config_file: "config/longrun_configs/amip_target_diagedmf.yml"
coupler_toml_file: "toml/amip.toml"
dt: "180secs"
dt_cpl: 180
dt_save_state_to_disk: "30days"
dt_save_to_sol: "30days"
dz_bottom: 100.0
energy_check: false
h_elem: 8
hourly_checkpoint: true
hourly_checkpoint_dt: 720
land_albedo_type: "map_temporal"
mode_name: "amip"
mono_surface: false
netcdf_interpolation_num_points: [90, 45, 31]
netcdf_output_at_levels: true
output_default_diagnostics: true
rayleigh_sponge: true
smoothing_order: 10
start_date: "20100101"
surface_setup: "PrescribedSurface"
t_end: "549days"
topo_smoothing: true
topography: "Earth"
turb_flux_partition: "CombinedStateFluxesMOST"
viscous_sponge: false
z_elem: 31
z_max: 50000.0
1 change: 1 addition & 0 deletions experiments/ClimaEarth/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include("amip_test.jl")

0 comments on commit b444a2d

Please sign in to comment.