Strumenti Utente

Strumenti Sito


oph:cluster:wrf

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisioneRevisione precedente
oph:cluster:wrf [2023/06/14 08:02] carlo.cintolesi@unibo.itoph:cluster:wrf [2023/11/20 18:20] (versione attuale) – [Installation details] carlo.cintolesi@unibo.it
Linea 55: Linea 55:
 needs to be shared among users, as it contains the static data (29 GB) required for running ''geogrid.exe''. needs to be shared among users, as it contains the static data (29 GB) required for running ''geogrid.exe''.
  
 +
 +===== Instruction for compiling WRF in the cluster =====
 +
 +Assuming that the Netcdf library, compilers and OpenMP are already been installed (that is the current case in the cluster), you may need to compile WRF to update the model. To compile WRF use a [[oph:cluster:jobs|interactive job]]. In particular, use the command:
 +
 +  salloc -N 1 --cpus-per-task=4 --time=00:30:00 --mem=32G --constraint=blade --partition=b1
 +
 +salloc will pause while waiting for the requested resources, so be prepared. It also tells you the value for $JOBID to be used in the following step. Then you can connect your terminal to the running job via:
 +
 +   srun --pty --overlap --jobid $JOBID bash
 +
 +Then copy and paste:
 +
 +  tcsh
 +  setenv DIR /home/software/atmos/WRFv4/Build_WRF/LIBRARIES
 +  setenv CC gcc
 +  setenv CXX g++
 +  setenv FC gfortran
 +  setenv FCFLAGS -m64
 +  setenv F77 gfortran
 +  setenv FFLAGS -m64
 +  setenv JASPERLIB $DIR/grib2/lib
 +  setenv JASPERINC $DIR/grib2/include
 +  setenv LDFLAGS -L$DIR/grib2/lib
 +  setenv CPPFLAGS -I$DIR/grib2/include
 +  setenv PATH $DIR/netcdf/bin:$PATH
 +  setenv NETCDF $DIR/netcdf
 +  setenv LD_LIBRARY_PATH /home/software/atmos/WRFv4/Build_WRF/LIBRARIES/grib2/lib
 +  setenv LD_LIBRARY_PATH $DIR/grib2/include:$LD_LIBRARY_PATH
 +
 +  module load mpi/openmpi/4.1.4
 +
 +Inside the WRF folder, type:
 +
 +  ./configure
 +
 +Select as configuration 34 (GNU compiler in parallel mode) with basic nesting (1). For WRF version 4.5.1 (at least) the file configure.wrf must be modified. At line 138:
 +
 +  FC              =       time $(DM_FC)
 +
 +must be replaced with:
 +  
 +  FC              =       $(DM_FC)
 +
 +Then you can compile (e.g., em_real) with:
 +
 +   ./compile em_real >& compile.log
 +
 +Remember to call at the end:
 +
 +   scancel $JOBID
 +
 +To build WPS follow the instructions in the [[https://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php|NCAR tutorial]].
 ===== Contacts ===== ===== Contacts =====
  
oph/cluster/wrf.1686729740.txt.gz · Ultima modifica: 2023/06/14 08:02 da carlo.cintolesi@unibo.it

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki