oph:cluster:wrf
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedente | |||
oph:cluster:wrf [2023/06/14 08:02] – carlo.cintolesi@unibo.it | oph: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 '' | needs to be shared among users, as it contains the static data (29 GB) required for running '' | ||
+ | |||
+ | ===== 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: | ||
+ | |||
+ | salloc -N 1 --cpus-per-task=4 --time=00: | ||
+ | |||
+ | 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 / | ||
+ | setenv CC gcc | ||
+ | setenv CXX g++ | ||
+ | setenv FC gfortran | ||
+ | setenv FCFLAGS -m64 | ||
+ | setenv F77 gfortran | ||
+ | setenv FFLAGS -m64 | ||
+ | setenv JASPERLIB $DIR/ | ||
+ | setenv JASPERINC $DIR/ | ||
+ | setenv LDFLAGS -L$DIR/ | ||
+ | setenv CPPFLAGS -I$DIR/ | ||
+ | setenv PATH $DIR/ | ||
+ | setenv NETCDF $DIR/netcdf | ||
+ | setenv LD_LIBRARY_PATH / | ||
+ | setenv LD_LIBRARY_PATH $DIR/ | ||
+ | |||
+ | module load mpi/ | ||
+ | |||
+ | 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 = | ||
+ | |||
+ | Then you can compile (e.g., em_real) with: | ||
+ | |||
+ | | ||
+ | |||
+ | Remember to call at the end: | ||
+ | |||
+ | | ||
+ | |||
+ | To build WPS follow the instructions in the [[https:// | ||
===== Contacts ===== | ===== Contacts ===== | ||
oph/cluster/wrf.1686729740.txt.gz · Ultima modifica: 2023/06/14 08:02 da carlo.cintolesi@unibo.it