|
13 | 13 |
|
14 | 14 | include("restart_utils.jl") |
15 | 15 |
|
16 | | -function amip_target_diagedmf(context) |
| 16 | +function amip_target_diagedmf(context, output_dir) |
17 | 17 | FT = Float32 |
18 | 18 | start_date = DateTime(2010, 1, 1) |
19 | 19 |
|
@@ -140,7 +140,8 @@ function amip_target_diagedmf(context) |
140 | 140 | ode_config, |
141 | 141 | surface_setup, |
142 | 142 | context, |
143 | | - job_id = "amip_target_diagedmf") |
| 143 | + job_id = "amip_target_diagedmf", |
| 144 | + output_dir) |
144 | 145 | simulation = CA.AtmosSimulation{FT}(; args...) |
145 | 146 |
|
146 | 147 | return (; simulation, args) |
@@ -416,16 +417,16 @@ if MANYTESTS |
416 | 417 | end |
417 | 418 | end |
418 | 419 | else |
419 | | - amip_output_loc = ClimaComms.iamroot(comms_ctx) ? mktempdir(pwd()) : "" |
420 | | - amip_output_loc = ClimaComms.bcast(comms_ctx, amip_output_loc) |
| 420 | + output_dir = ClimaComms.iamroot(comms_ctx) ? mktempdir(pwd()) : "" |
| 421 | + output_dir = ClimaComms.bcast(comms_ctx, output_dir) |
421 | 422 | # Sometimes the shared filesystem doesn't work properly and the folder is |
422 | 423 | # not synced across MPI processes. Let's add an additional check here. |
423 | | - maybe_wait_filesystem(comms_ctx, amip_output_loc) |
| 424 | + maybe_wait_filesystem(comms_ctx, output_dir) |
424 | 425 |
|
425 | 426 | push!( |
426 | 427 | TESTING, |
427 | 428 | (; |
428 | | - amip_target_diagedmf(comms_ctx)..., |
| 429 | + amip_target_diagedmf(comms_ctx, joinpath(output_dir, "amip_target_diagedmf"))..., |
429 | 430 | more_ignore = Symbol[], |
430 | 431 | ), |
431 | 432 | ) |
|
0 commit comments