File tree Expand file tree Collapse file tree 1 file changed +25
-15
lines changed
docs/build-install/applications Expand file tree Collapse file tree 1 file changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,8 @@ export NETCDF4=1
171171export WRFIO_NCD_LARGE_FILE_SUPPORT=1
172172export 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
177177export CC=mpicc
178178export FC=mpifort
@@ -193,21 +193,31 @@ clean and compile
193193
194194The 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+ ```
You can’t perform that action at this time.
0 commit comments