Skip to content

Commit

Permalink
Updating to reflect new code (NOAA-EMC#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
christinaholtNOAA authored Mar 2, 2021
1 parent ed88a32 commit c8b1e09
Showing 1 changed file with 25 additions and 32 deletions.
57 changes: 25 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ This branch supports the following features:
- NCL Graphics Rocoto jobs, jobs, and scripts for the web graphics
- A slight modification on the standard NCO configuration for logs
- Additional grib2 files
- FV3_HRRR physics (workflow components enabled)
- A different vertical configuration -- L65_20mb

# Repo Directory Structure
Expand All @@ -33,10 +32,8 @@ regional_workflow repositories.
ufs-srweather-app/
├── docs
│   └── UsersGuide
├── env # Files to set environment on supported platforms
├── exec # Installed executables
├── fix
│   ├── fix_am # Linked during build. Soon to be DEPRECATED.
│   └── fix_fv3 # DEPRECATED
├── manage_externals # Utility for gathering git submodules
├── regional_workflow # See details below.
└── src # Source code
Expand All @@ -49,13 +46,11 @@ regional_workflow repositories.
regional_workflow/
├── docs
│   └── UsersGuide
├── env # DEPRECATED and recently removed
├── env # DEPRECATED and removed recently in community
├── jobs # Job cards - bash scripts that call ex-scripts
├── modulefiles
│   ├── codes # DEPRECATED and recently removed
│   └── tasks # Module files loaded at run time
├── scripts # EX Scripts - bash scripts to run components
├── sorc # DEPRECATED
├── tests # Workflow E2E test configuration files
│   └── baseline_configs
└── ush # Utility scripts
Expand All @@ -72,43 +67,35 @@ regional_workflow repositories.

There are a handful of steps below that are required to build the code,
configure an experiment, and run the experiment. Please ensure that each
is successful before moving onto the next.

is successful before moving onto the next. The example shown here is for
building in your own working area on Jet, not the role account.

### Building

Building need be done only once if no source code is changed.

- Clone the ufs-srweather-app repository.
```
git clone https://github.com/NOAA-GSD/ufs-srweather-app.git gsd-srweather-app
cd gsd-srweather-app
git clone https://github.com/NOAA-GSL/ufs-srweather-app.git gsl-srweather-app
cd gsl-srweather-app
git checkout feature/RRFS_dev1
```
- And retrieve the externals.

```
./manage_externals/checkout_externals
```

- Build the code.

- Source the build environment (must be in bash shell)
```
cd src/
./build_all.sh
bash # If your default shell is not bash
source env/build_jet_intel.env
```
- Build the code (from top level SRW App).
```
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=..
make -j 4 2>&1 | tee build.log
```


### Linking fix files

The files need to be linked for each new clone. The configuration step
below will fail verbosely if this step has been skipped.

cd regional_workflow
mkdir fix
cd fix
ln -sf /mnt/lfs4/BMC/nrtrr/RRFS/fix/fix_am.20201001 fix_am
ln -sf /mnt/lfs4/BMC/nrtrr/RRFS/fix/fix_lam.20201001 fix_lam

### Configuring

Expand All @@ -117,7 +104,7 @@ to be updated consistently with each other:

- Module files staged in regional_workflow/modulefiles
- Scripts and templates staged in regional_workflow/ush:
- FV3 input.nml
- FV3's input.nml
- config.sh
- setup.sh
- config_defaults.sh
Expand Down Expand Up @@ -181,7 +168,6 @@ Before proceeding with this section, make sure you have successfully
done the following:

- Built the source code
- Linked the fix files
- Modified and linked the configure file
- Modified the XML template to your needs

Expand All @@ -190,10 +176,16 @@ directory that contains the XML, namelists, etc.

### Load the conda environment:

module use -a /contrib3/miniconda3/modulefiles
module use -a /contrib/miniconda3/modulefiles
module load miniconda3
conda activate regional_workflow


Alternatively, you can source an environment file from the App level:

source env/wflow_jet.env


### Configure the experiment:

cd ufs-srweather-app/regional_workflow/ush
Expand Down Expand Up @@ -318,6 +310,7 @@ real-time runs, or running real-time runs:
| ---- | :---- |
| Christina Holt | [email protected] |
| Trevor Alcott | [email protected] |
| Jaymes Kenyon | [email protected] |

For science and programmatic questions related to RRFS runs at AVID:

Expand Down

0 comments on commit c8b1e09

Please sign in to comment.