Skip to content

Commit

Permalink
Merge pull request #4488 from jedwards4b/cprnc_readme_update
Browse files Browse the repository at this point in the history
update instructions for building cprnc with cmake
  • Loading branch information
jedwards4b authored Oct 12, 2023
2 parents d5ac3b0 + a9343da commit 9b29244
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CIME/non_py/cprnc/README
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ Quick Start Guide:
------------------

On cime supported systems you can generate a cmake Macros file using the following
(assuming you are running the command from the directory CIME/data/cprnc):
(assuming you are running the command from the directory CIME/non_py/cprnc):

export CIMEROOT=../..
MPILIB=mpi-serial source ./.env_mach_specific.sh
../configure --macros-format=CMake --mpilib=mpi-serial

Next run cmake . to build the Makefile and then
make to build cprnc.
../../scripts/configure --macros-format=CMake --mpilib=mpi-serial
MPILIB=mpi-serial source ./.env_mach_specific.sh
# Flags if you are using the intel compiler:
CC=icc FC=ifort cmake -DBLDROOT=. -DCASEROOT=. -DCOMPILER=intel -DMACH=cheyenne -DSRC_ROOT=../../../ .
make

Finally, put the resulting executable in CCSM_CPRNC as defined in
config_machines.xml.
Expand Down

0 comments on commit 9b29244

Please sign in to comment.