You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And don't use `atmos.p.output_dir`
The output structure looks like this:
```
coupler_output_dir_amip/
├── checkpoints
│ └── checkpoints for the various models
├── output_0000/
│ ├── atmos/
│ │ └── output of the atmos model
│ └── ocean/
│ └── output of the ocean model
├── output_0001/
│ └── ... component model outputs in their folders ...
├── output_0002/
│ └── ... component model outputs in their folders ...
└── output_active -> output_0002/
```
## set unique random seed if desired, otherwise use default
136
151
Random.seed!(random_seed)
137
152
@info"Random seed set to $(random_seed)"
138
153
139
-
tspan = (t_start, t_end)
140
-
141
-
#=
142
-
### I/O Directory Setup
143
-
`Utilities.setup_output_dirs` returns `dir_paths.output = COUPLER_OUTPUT_DIR`, which is the directory where the output of the simulation will be saved, and `dir_paths.artifacts` is the directory where
144
-
the plots (from postprocessing and the conservation checks) of the simulation will be saved. `dir_paths.regrid` is the directory where the regridding
@@ -100,33 +101,52 @@ Create output directories for the experiment. If `comms_ctx` is provided, only t
100
101
By default, the regrid directory is created as a temporary directory inside the output directory,
101
102
and the artifacts directory is created inside the output directory with the name `artifacts/`.
102
103
104
+
`ClimaUtilities.OutputPathGenerator` is used so that simulations can be re-run and re-started.
105
+
The output path looks like:
106
+
```
107
+
coupler_output_dir_amip/
108
+
├── checkpoints
109
+
│ └── checkpoints for the various models
110
+
├── artifacts
111
+
│ └── plots produced by the postporcessing step
112
+
├── output_0000/
113
+
│ ├── atmos/
114
+
│ │ └── output of the atmos model
115
+
│ └── ocean/
116
+
│ └── output of the ocean model
117
+
├── output_0001/
118
+
│ └── ... component model outputs in their folders ...
119
+
├── output_0002/
120
+
│ └── ... component model outputs in their folders ...
121
+
└── output_active -> output_0002/
122
+
```
123
+
103
124
# Arguments
104
125
- `output_dir::String`: The directory where the output files will be stored. Default is the current directory.
105
126
- `regrid_dir::String`: The directory where the regridded files will be stored. Default is `output_dir/regrid_tmp/`.
127
+
- `checkpoint_dir::String`: The directory where the checkpoint files will be stored. Default is `output_dir/checkpoints/`.
106
128
- `artifacts_dir::String`: The directory where the artifacts will be stored. Default is `output_dir/artifacts/`.
107
129
- `comms_ctx::Union{Nothing, ClimaComms.AbstractCommsContext}`: The communicator context. If provided, only the root process will create the directories.
108
130
109
131
# Returns
110
132
- A tuple with the paths to the output, regrid, and artifacts directories.
0 commit comments