[Wrf-users] ask for help on installing and compiling WRF 3.5.1

Fotis Georgatos kefalonia at gmail.com
Tue Oct 15 01:52:42 MDT 2013


Hi Wei,

I had to do little effort to get 3.5.1 working, using EasyBuild/1.7.0 and
the following configuration
(ie. skipping the WRF*known_problems.patch file and,
simply reusing WRF-%(version)s_netCDF-Fortran_separate_path.patch from
version 3.5)

I make no claims about the validity of the build, other than that there is
one now ;-)
You should be able to change the buildtype relatively easily!

```
fgeorgatos at gaia-10:~: $ module load EasyBuild # ref.
https://github.com/hpcugent/easybuild/wiki

fgeorgatos at gaia-10:~: $ eb --version
This is EasyBuild 1.7.0 (framework: 1.7.0, easyblocks: 1.7.0) on host
gaia-10.

fgeorgatos at gaia-10:~: $ time eb WRF-3.5.1-goolf-1.4.10-dmpar.eb
== temporary log file in case of crash /tmp/easybuild-GiN64v.log
== resolving dependencies ...
== processing EasyBuild easyconfig
/mnt/nfs/users/homedirs/fgeorgatos/WRF-3.5.1-goolf-1.4.10-dmpar.eb
== building and installing WRF-3.5.1-goolf-1.4.10-dmpar...
== fetching files...
== creating build dir, resetting environment...
== unpacking...
== patching...
== preparing...
== configuring...
== building...
== testing...
== installing...
== taking care of extensions...
== packaging...
== postprocessing...
== sanity checking...
== cleaning up...
== creating module...
== COMPLETED: Installation ended successfully
==
WARNING: Build exited with exit code 0. 18 possible error(s) were detected
in the build logs, please verify the build.

== Results of the build can be found in the log file
/tmp/easybuild-WRF-3.5.1-20131015.092622.log
== Build succeeded for 1 out of 1
== temporary log file /tmp/easybuild-GiN64v.log has been removed.

real 35m43.606s
user 33m21.733s
sys 1m43.710s

fgeorgatos at gaia-10:~: $ cat WRF-3.5.1-goolf-1.4.10-dmpar.eb
name = 'WRF'
version = "3.5.1" # tweaked by EasyBuild (was: '3.5')

homepage = 'http://www.wrf-model.org'
description = """The Weather Research and Forecasting (WRF) Model is a
next-generation mesoscale
 numerical weather prediction system designed to serve both operational
forecasting and atmospheric
 research needs."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'opt': False}  # don't use agressive optimization, stick
to -O2

sources = ['%sV%s.TAR.gz' % (name, version)]
source_urls = ['http://www.mmm.ucar.edu/wrf/src/']

# csh is used by WRF install scripts
builddependencies = [('tcsh', '6.18.01')]

dependencies = [
    ('JasPer', '1.900.1'),
    ('netCDF', '4.2.1.1'),
    ('netCDF-Fortran', '4.2'),
]

patches = [
    'WRF_parallel_build_fix.patch',
    'WRF-%(version)s_netCDF-Fortran_separate_path.patch',
#    'WRF-%(version)s_known_problems.patch',
    'WRF_tests_limit-runtimes.patch',
]

# limit parallel build to 20
maxparallel = 20

buildtype = "dmpar"
versionsuffix = '-%s' % buildtype

moduleclass = 'geo'

fgeorgatos at gaia-10:~: $ time eb --try-software-name=WRF
--try-software-version=3.5.1 --try-toolchain=goolf,1.4.10 --dry-run -r|sed
's@/.*/@@g'
== temporary log file in case of crash easybuild-bg7bn2.log
== Generated an easyconfig file WRF-3.5.1-goolf-1.4.10-dmpar.eb, going to
use it now...
== Dry run: printing build status of easyconfigs and dependencies
[x] GCC-4.7.2.eb
[x] hwloc-1.6.2-GCC-4.7.2.eb
[x] OpenMPI-1.6.4-GCC-4.7.2.eb
[x] gompi-1.4.10.eb
[x] OpenBLAS-0.2.6-gompi-1.4.10-LAPACK-3.4.2.eb
[x] FFTW-3.3.3-gompi-1.4.10.eb
[x] ScaLAPACK-2.0.2-gompi-1.4.10-OpenBLAS-0.2.6-LAPACK-3.4.2.eb
[x] goolf-1.4.10.eb
[x] ncurses-5.9-goolf-1.4.10.eb
[x] zlib-1.2.7-goolf-1.4.10.eb
[x] Szip-2.1-goolf-1.4.10.eb
[x] flex-2.5.37-goolf-1.4.10.eb
[x] JasPer-1.900.1-goolf-1.4.10.eb
[x] tcsh-6.18.01-goolf-1.4.10.eb
[x] HDF5-1.8.10-patch1-goolf-1.4.10.eb
[x] M4-1.4.16-goolf-1.4.10.eb
[x] Bison-2.7-goolf-1.4.10.eb
[x] Doxygen-1.8.3.1-goolf-1.4.10.eb
[x] netCDF-4.2.1.1-goolf-1.4.10.eb
[x] netCDF-Fortran-4.2-goolf-1.4.10.eb
[x] WRF-3.5.1-goolf-1.4.10-dmpar.eb

real 0m4.002s
user 0m0.912s
sys 0m1.184s

fgeorgatos at gaia-10:~: $ module av WRF

---------------------------------------------
/home/users/fgeorgatos/.local/easybuild/modules/all
----------------------------------------------
WRF/3.5.1-goolf-1.4.10-dmpar

--------------------------------------------------------
/opt/apps/HPCBIOS/modules/geo
---------------------------------------------------------
WRF/3.3.1-goalf-1.1.0-no-OFED-dmpar WRF/3.3.1-ictce-5.3.0-dmpar
WRF/3.4-ictce-3.2.2.u3-dmpar        WRF/3.5-ictce-5.3.0-dmpar
WRF/3.3.1-goolf-1.4.10-dmpar        WRF/3.4-goalf-1.1.0-no-OFED-dmpar
WRF/3.4-ictce-5.3.0-dmpar
WRF/3.3.1-ictce-3.2.2.u3-dmpar      WRF/3.4-goolf-1.4.10-dmpar
 WRF/3.5-goolf-1.4.10-dmpar

fgeorgatos at gaia-10:~: $ module load WRF/3.5.1-goolf-1.4.10-dmpar

fgeorgatos at gaia-10:~: $ which wrf.exe
/home/users/fgeorgatos/.local/easybuild/software/WRF/3.5.1-goolf-1.4.10-dmpar/WRFV3/main/wrf.exe

fgeorgatos at gaia-10:~: $
```

enjoy,
Fotis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20131015/e16f7985/attachment.html 


More information about the Wrf-users mailing list