Skip to content

Commit

Permalink
Inline model_config in @threaded (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici authored Mar 25, 2024
1 parent 295a3fb commit ee60582
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ekp_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ function calibrate(experiment_id; device = ClimaComms.device())
for i in 0:(N_iter - 1)
ClimaComms.@threaded device for m in 1:N_mem
# model run for each ensemble member
model_config = get_config(physical_model, m, i, experiment_id)
run_forward_model(physical_model, model_config; lk)
run_forward_model(
physical_model,
get_config(physical_model, m, i, experiment_id);
lk,
)
@info "Finished model run for member $m at iteration $i"
end

Expand Down

0 comments on commit ee60582

Please sign in to comment.