Skip to content

Commit

Permalink
Few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bishtgautam committed Sep 18, 2024
1 parent ff40c9c commit ab88c97
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
3 changes: 1 addition & 2 deletions components/elm/docs/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ provides guidance on enabling these different FATES run modes.

A new surface dataset for ELM is generated using `mksurfdata_map` and the notes about it are available [here](surface_dataset.md)


## Generate land initial condition

Initial ELM condition can be generated using `interpinic` and the notes about it are available [here](interpinic.md).
Initial ELM condition can be generated using `interpinic` and the notes about it are available [here](interpinic.md).
10 changes: 4 additions & 6 deletions components/elm/docs/user-guide/interpinic.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ The notes below provide an example of creating 1850 ELM IC file for the NARRM gr

The identified input land condition file for this case is the following:

```
```bash
/lcrc/group/e3sm2/ac.golaz/E3SMv3/v3.LR.piControl/archive/rest/0101-01-01-00000/v3.LR.piControl.elm.r.0101-01-01-00000.nc
```

## 2. Obtaining an ELM restart file

Using an existing NARRM land IC and making a copy of it

```
```bash
cd components/elm/tools/interpinic

cp /lcrc/group/e3sm/data/inputdata/lnd/clm2/initdata_map/elmi.v3-NARRM.northamericax4v1pg2_r025_IcoswISC30E3r5.1870-01-01-00000.c20240704.nc \
Expand All @@ -36,7 +36,7 @@ elmi.v3-NARRM.northamericax4v1pg2_r025_IcoswISC30E3r5.1850-01-01-00000.c`date "+

## 3. Compiling `interpinic`

```
```bash
# Load relevant modules
cd <e3sm-dir>
eval $(./cime/CIME/Tools/get_case_env)
Expand All @@ -47,14 +47,13 @@ cd components/elm/tools/interpinic/src
export USER_LDFLAGS="-L$NETCDF_C_DIR/lib -lnetcdf -L$NETCDF_F_DIR/lib -lnetcdff -L$HDF5_DIR/lib -lhdf5"

USER_FC=ifort LIB_NETCDF="`nc-config --flibs`" INC_NETCDF="`nf-config --includedir`" make VERBOSE=1
```

## 4. Run `interpinic`

The `interpinic ` can then be run via the following batch job (e.g., `remap.r025_RRSwISC6to18E3r4.1850.batch`) to generate the initial condition.

Check failure on line 54 in components/elm/docs/user-guide/interpinic.md

View workflow job for this annotation

GitHub Actions / linter

Spaces inside code span elements

components/elm/docs/user-guide/interpinic.md:54:5 MD038/no-space-in-code Spaces inside code span elements [Context: "`interpinic `"] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md038.md

```
```bash
>cat remap.r025_RRSwISC6to18E3r4.1850.batch

#!/bin/sh
Expand All @@ -76,4 +75,3 @@ srun -n 1 ./interpinic \
-i /lcrc/group/e3sm2/ac.golaz/E3SMv3/v3.LR.piControl/archive/rest/0101-01-01-00000/v3.LR.piControl.elm.r.0101-01-01-00000.nc \
-o elmi.v3-NARRM.northamericax4v1pg2_r025_IcoswISC30E3r5.1850-01-01-00000.c20240903.nc
```

14 changes: 7 additions & 7 deletions components/elm/docs/user-guide/surface_dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

The notes describe the steps in creating an ELM surface dataset at 0.5x0.5 resolution for 1950 on Perlmutter.

1. Load the appropriate modules.
## 1. Load the appropriate modules.

Check failure on line 5 in components/elm/docs/user-guide/surface_dataset.md

View workflow job for this annotation

GitHub Actions / linter

Trailing punctuation in heading

components/elm/docs/user-guide/surface_dataset.md:5:35 MD026/no-trailing-punctuation Trailing punctuation in heading [Punctuation: '.'] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md026.md

```
```bash
cd <e3ms-dir>
eval $(./cime/CIME/Tools/get_case_env)
```

2. Compile `mksurfdata_map`.
## 2. Compile `mksurfdata_map`.

Check failure on line 12 in components/elm/docs/user-guide/surface_dataset.md

View workflow job for this annotation

GitHub Actions / linter

Trailing punctuation in heading

components/elm/docs/user-guide/surface_dataset.md:12:31 MD026/no-trailing-punctuation Trailing punctuation in heading [Punctuation: '.'] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md026.md

```
```bash
cd components/elm/tools/mksurfdata_map/src/

make clean
Expand All @@ -25,7 +25,7 @@ USER_FC=ifort LIB_NETCDF="`nc-config --flibs`" INC_NETCDF="`nf-config --included
If the surface dataset is being created for an unsupported resolution, 16 mapping files will have to be created to map the raw datasets
onto this unsupported resolution.

```
```bash
cd ../

RES=0.5x0.5
Expand All @@ -38,12 +38,12 @@ mv namelist namelist.$RES.$YR

4. Run `mksurfdata_map` via an interactive job.

Check failure on line 39 in components/elm/docs/user-guide/surface_dataset.md

View workflow job for this annotation

GitHub Actions / linter

Ordered list item prefix

components/elm/docs/user-guide/surface_dataset.md:39:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 4; Style: 1/1/1] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md029.md

```
```bash
salloc --nodes 1 --qos interactive --time 01:00:00 --constraint cpu --account e3sm

RES=0.5x0.5
YR=1950
NAMELIST=namelist.$RES.$YR

srun -n 1 ./mksurfdata_map < $NAMELIST
```
```

0 comments on commit ab88c97

Please sign in to comment.