Skip to content

Commit 8534df0

Browse files
committed
add SNOWLIB env. variable; fix some other little errors
1 parent 4d7dc18 commit 8534df0

File tree

1 file changed

+25
-15
lines changed
  • docs/build-install/applications

1 file changed

+25
-15
lines changed

docs/build-install/applications/wrf.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ export NETCDF4=1
171171
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
172172
export WRFIO_NCD_NO_LARGE_FILE_SUPPORT=0
173173
174-
export JASPERLIB=WRFPATH/dependencies/view/lib64
175-
export JASPERINC=WRFPATH/dependencies/view/include
174+
export JASPERLIB=$WRFPATH/dependencies/view/lib64
175+
export JASPERINC=$WRFPATH/dependencies/view/include
176176
177177
export CC=mpicc
178178
export FC=mpifort
@@ -193,21 +193,31 @@ clean and compile
193193

194194
The CRYOWRF repository includes a copy of WRF v4.2.1, that has been modified to integrate the SNOWPACK extension build in step 1.
195195

196-
```console
197-
$ cd WRF
198-
$ clean -a
199-
$ ./configure.sh
200-
[choose option 35][nesting: choose option 1]
201196
```
197+
export SNOWLIBS=$WRFPATH/CRYOWRF/snpack_for_wrf
198+
cd WRF
199+
./clean -a
200+
# [choose option 35][nesting: choose option 1] when prompted by configure
201+
./configure
202+
```
203+
204+
!!! info "Set `SNOWLIBS`"
205+
The `SNOWLIBS` environment variable needs to be set so that WRF can find the extension we compiled earlier.
202206

203-
`configure.wrf`
207+
Make sure that the following lines are set in `configure.wrf`:
204208
```
205-
SFC = gfortran
206-
SCC = gcc
207-
CCOMP = gcc
208-
DM_FC = mpif90
209-
DM_CC = mpicc
210-
FC = mpif90
211-
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG) -fallow-argument-mismatch -fallow-invalid-boz -g
209+
SFC = gfortran
210+
SCC = gcc
211+
CCOMP = gcc
212+
DM_FC = mpif90
213+
DM_CC = mpicc
214+
FC = mpif90
215+
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG) -fallow-argument-mismatch -fallow-invalid-boz -g
216+
NETCDFPATH = /user-environment/env/default
212217
```
213218

219+
Now compile WRF :fingers-crossed:
220+
221+
```
222+
./compile em_real -j 64 &> log_compile
223+
```

0 commit comments

Comments
 (0)