Skip to content

Commit efead4e

Browse files
committed
Modify distributed imports in calibration script
1 parent fbea3d1 commit efead4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

experiments/calibration/run_calibration.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ end
4444

4545
addprocs(CAL.SlurmManager())
4646
# Make variables and the forward model available on the worker sessions
47+
@everywhere import ClimaComms, CUDA, ClimaCoupler
48+
@everywhere import ClimaCalibrate as CAL
49+
@everywhere import JLD2
4750
@everywhere begin
4851
# Run for a shorter time if SHORT_RUN is set
4952
const SHORT_RUN = haskey(ENV, "SHORT_RUN") ? true : false
5053

51-
import ClimaComms, CUDA, ClimaCoupler
5254
ENV["CLIMACOMMS_DEVICE"] = "CUDA"
5355
ENV["CLIMACOMMS_CONTEXT"] = "SINGLETON"
54-
import ClimaCalibrate as CAL
55-
import JLD2
5656

5757
experiment_dir = joinpath(pkgdir(ClimaCoupler), "experiments", "calibration")
5858
include(joinpath(experiment_dir, "model_interface.jl"))

0 commit comments

Comments
 (0)