Skip to content

Commit

Permalink
testing utils [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Jun 17, 2024
1 parent 31ceed8 commit 014947d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/ci_configs/slabplanet_albedo_temporal_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dt: "200secs"
dt_cpl: 200
dt_save_to_sol: "3600secs"
energy_check: true
h_elem: 4
h_elem: 16
land_albedo_type: "map_temporal"
mode_name: "slabplanet"
moist: "equil"
Expand Down
8 changes: 6 additions & 2 deletions experiments/ClimaEarth/run_amip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ parsed_args = parse_commandline(argparse_settings())
## modify parsed args for fast testing from REPL #hide
if isinteractive()
parsed_args["config_file"] =
isnothing(parsed_args["config_file"]) ? joinpath(pkg_dir, "config/ci_configs/interactive_debug.yml") :
isnothing(parsed_args["config_file"]) ? joinpath(pkg_dir, "config/ci_configs/slabplanet_albedo_temporal_map.yml") :
parsed_args["config_file"]
parsed_args["job_id"] = "interactive_debug"
parsed_args["job_id"] = "slabplanet_albedo_temporal_map"
end

## the unique job id should be passed in via the command line
Expand Down Expand Up @@ -685,6 +685,10 @@ FieldExchanger.reinit_model_sims!(cs.model_sims)
FieldExchanger.import_atmos_fields!(cs.fields, cs.model_sims, cs.boundary_space, cs.turbulent_fluxes)
FieldExchanger.update_model_sims!(cs.model_sims, cs.fields, cs.turbulent_fluxes)

tempest_albedo_before_step = CL.surface_albedo(land_sim.model, land_sim.integrator.u, land_sim.integrator.p)
Plots.plot(tempest_albedo_before_step)
Plots.savefig("june13-albedos/slabplanet_tempest_albedo_spacefillingcurve")

#=
## Coupling Loop
Expand Down

0 comments on commit 014947d

Please sign in to comment.