Skip to content

Commit 11966db

Browse files
committed
Initial regional LBC and run
1 parent 13efe89 commit 11966db

1 file changed

Lines changed: 106 additions & 5 deletions

File tree

02-run.md

Lines changed: 106 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,15 @@ Then, in `streams.init_atmosphere`, set the input file name template to `x1.1024
170170
(the static file we just created),
171171
and the output file name template to `Africa.init.nc`.
172172

173-
Submit the job.
173+
Submit the job (same one we used to create the static file):
174174

175175
```bash
176176
qsub init_real.pbs
177177
```
178178

179179
```{note}
180+
:label: sfc-update
181+
180182
For simulations longer than a few days,
181183
you would likely want to also create SST and sea-ice update files.
182184
This uses init case 8, the "surface field initialization" case.
@@ -288,6 +290,8 @@ cp ~/MPAS-Model_v8.3/src/core_atmosphere/physics/physics_wrf/files/* .
288290

289291
Note that we link a static file instead of a grid file
290292
(we're skipping static file creation in this example).
293+
See Section 5.1 of the [official virtual tutorial](https://www2.mmm.ucar.edu/projects/mpas/tutorial/Virtual2025/)
294+
for some guidance on creating regional static files.
291295

292296
## Initial conditions
293297

@@ -319,7 +323,29 @@ Update `namelist.init_atmosphere` with these settings:
319323
Then, in `streams.init_atmosphere`, set the input file name template to `Africa.static.nc`
320324
and the output file name template to `Africa.init.nc`.
321325

322-
TODO: job
326+
Create a job script to run the model initialization program.
327+
328+
```{code} bash
329+
:filename: init.pbs
330+
331+
#!/usr/bin/env bash
332+
#PBS -N init
333+
#PBS -q main
334+
#PBS -l job_priority=regular
335+
#PBS -A UTAM0025
336+
#PBS -l walltime=01:30:00
337+
#PBS -l select=2:ncpus=128:mpiprocs=120:mem=235gb
338+
339+
source ~/mpas-modules-intel.sh
340+
341+
mpiexec ./init_atmosphere_model
342+
```
343+
344+
Submit the job.
345+
346+
```bash
347+
qsub init.pbs
348+
```
323349

324350
(africa-bc)=
325351

@@ -342,14 +368,89 @@ Update `namelist.init_atmosphere` with these settings:
342368
| `preproc_stages.config_frac_seaice` | `true` |
343369
| `decomposition.config_block_decomp_file_prefix` | `'Africa.graph.info.part.'` |
344370

345-
The differences being that now we are using init case 9,
371+
👆 The differences are that now we are using init case 9,
346372
and we need to set a stop time.
347373

348374
Then, in `streams.init_atmosphere`, set the input file name template to `Africa.init.nc`
349375
and the LBC output interval to `1:00:00` (hourly).
350376

351-
TODO: job
377+
Submit the job (same one we used to create the initial conditions):
378+
379+
```bash
380+
qsub init.pbs
381+
```
382+
383+
We will again skip creating [surface update](#sfc-update) files.
352384

353385
## Run the model
354386

355-
TODO: edit diag streams to include isobaric variables
387+
Update `namelist.atmosphere` with these settings:
388+
389+
| parameter | value |
390+
| ----------------------------------------------- | --------------------------- |
391+
| `nhyd_model.config_dt` | `13.0` |
392+
| `nhyd_model.config_start_time` | `'2017-09-12_00:00:00'` |
393+
| `nhyd_model.config_run_duration` | `'3_00:00:00'` |
394+
| `nhyd_model.config_radtlw_interval` | `'00:30:00'` |
395+
| `nhyd_model.config_radtsw_interval` | `'00:30:00'` |
396+
| `physics.config_physics_suite` | `'convection_permitting'` |
397+
| `decomposition.config_block_decomp_file_prefix` | `'Africa.graph.info.part.'` |
398+
399+
👆 Note that we have set a much smaller time step than in the coarse global example,
400+
we use the default RT interval,
401+
and we have selected the convection-permitting physics suite.
402+
403+
Then, in `streams.atmosphere`
404+
405+
- set the input file name template to `Africa.init.nc`
406+
- set the restart output interval to `3_00:00:00` (the end of our run)
407+
- set the diagnostics output interval to `1:00:00` (hourly)
408+
- set the LBC input interval to `1:00:00` to match our LBC files
409+
410+
Finally, in `stream_list.atmosphere.diagnostics`, replace the contents with
411+
412+
```{code} none
413+
:filename: stream_list.atmosphere.diagnostics
414+
:caption: Note isobaric diagnostics
415+
416+
initial_time
417+
xtime
418+
Time
419+
olrtoa
420+
rainc
421+
rainnc
422+
t_isobaric
423+
uzonal_isobaric
424+
umeridional_isobaric
425+
vorticity_isobaric
426+
```
427+
428+
👆 In the output diag files, the `*_isobaric` variables will be on pressure levels,
429+
specifically the 27 ERA5 levels from 100 to 1000 hPa.
430+
431+
Create a job script to run the model.
432+
433+
```{code} bash
434+
:filename: run.pbs
435+
436+
#!/usr/bin/env bash
437+
#PBS -N run
438+
#PBS -q main
439+
#PBS -l job_priority=regular
440+
#PBS -A UTAM0025
441+
#PBS -l walltime=12:00:00
442+
#PBS -l select=45:ncpus=128:mpiprocs=120:mem=235gb
443+
444+
source ~/mpas-modules-intel.sh
445+
446+
mpiexec ./atmosphere_model
447+
```
448+
449+
👆 Note that the product of the number of nodes (`select`)
450+
and the number of MPI processes per node (`mpiprocs`) matches our second partition file.
451+
452+
Submit the job.
453+
454+
```bash
455+
qsub run.pbs
456+
```

0 commit comments

Comments
 (0)