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
The `OUTPUT_PATH` variable is set to tell Merlin where you want your output directory to be written. The default is the current working directory.
@@ -254,7 +254,7 @@ nonsimworkers:
254
254
255
255
### Putting It All Together
256
256
257
-
By the end, your `openfoam_wf.yaml` should look like the template version in the same directory:
257
+
By the end, your `openfoam_wf_singularity.yaml` should look like the template version in the same directory:
258
258
259
259
???+ abstract "Complete Spec File"
260
260
@@ -273,21 +273,21 @@ Now that you are done with the Specification file, use the following commands fr
273
273
Create the DAG and send tasks to the server with:
274
274
275
275
```bash
276
-
merlin run openfoam_wf.yaml
276
+
merlin run openfoam_wf_singularity.yaml
277
277
```
278
278
279
279
Open a new terminal window, then start the workers that will consume the tasks we just queued by using:
280
280
281
281
```bash
282
-
merlin run-workers openfoam_wf.yaml
282
+
merlin run-workers openfoam_wf_singularity.yaml
283
283
```
284
284
285
285
But wait! We realize that 10 samples is not enough to train a good model. We would like to restart with 100 samples instead of 10 (should take about 6 minutes):
286
286
287
287
After sending the workers to start on their queues, we need to first stop the workers:
We stopped these tasks from running but if we were to run the workflow again (with 100 samples instead of 10), we would continue running the 10 samples first! This is because the queues are still filled with the previous attempt's tasks. This can be seen with:
298
298
299
299
```bash
300
-
merlin status openfoam_wf.yaml
300
+
merlin status openfoam_wf_singularity.yaml
301
301
```
302
302
303
303
We need to purge these queues first in order to repopulate them with the appropriate tasks. This is where we use the `merlin purge` command:
304
304
305
305
```bash
306
-
merlin purge openfoam_wf.yaml
306
+
merlin purge openfoam_wf_singularity.yaml
307
307
```
308
308
309
309
Now we are free to repopulate the queues with the 100 samples. In our terminal window that's not designated for our workers, we'll queue up tasks again, this time with 100 samples:
310
310
311
311
```bash
312
-
merlin run openfoam_wf.yaml --vars N_SAMPLES=100
312
+
merlin run openfoam_wf_singularity.yaml --vars N_SAMPLES=100
313
313
```
314
314
315
315
Then in our window for workers, we'll execute:
316
316
317
317
```bash
318
-
merlin run-workers openfoam_wf.yaml
318
+
merlin run-workers openfoam_wf_singularity.yaml
319
319
```
320
320
321
321
To see your results, look inside the `learn` output directory. You should see a png that looks like this:
0 commit comments