Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

WRFDA 4DVAR compiliation in parallel

D

Deleted member 3607

Guest
Good afternoon,

I am wondering if you can compile WRFDA 4DVAR in parallel? I can compile and make all the other WRF code in parallel but when I do 4DAR in parallel it gives some fatal errors. Is WRFDA 4DVAR not parallel enabled?

My code that I am using is this: Where $CPU_HALF_EVEN is half of the available cores on my system rounded to the nearest even number.


Code:
[############################ WRF 4.4  #################################
## WRF v4.4
## Downloaded from git tagged releases
# option 34, option 1 for gfortran and distributed memory w/basic nesting
# large file support enable with WRFiO_NCD_LARGE_FILE_SUPPORT=1
########################################################################
cd $HOME/WRF/Downloads
wget -c https://github.com/wrf-model/WRF/releases/download/v4.4/v4.4.tar.gz -O WRF-4.4.tar.gz
tar -xvzf WRF-4.4.tar.gz -C $HOME/WRF
cd $HOME/WRF/WRFV4.4
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
./clean -a
./configure # option 34, option 1 for gfortran and distributed memory w/basic nesting
./compile -j $CPU_HALF_EVEN em_real

export WRF_DIR=$HOME/WRF/WRFV4.4

read -t 5 -p "I am going to wait for 5 seconds only ..."
############################WPSV4.4#####################################
## WPS v4.4
## Downloaded from git tagged releases
#Option 3 for gfortran and distributed memory 
########################################################################

cd $HOME/WRF/Downloads
wget -c https://github.com/wrf-model/WPS/archive/refs/tags/v4.4.tar.gz -O WPS-4.4.tar.gz
tar -xvzf WPS-4.4.tar.gz -C $HOME/WRF
cd $HOME/WRF/WPS-4.4
./clean -a
./configure                         #Option 3 for gfortran and distributed memory 
./compile 

read -t 5 -p "I am going to wait for 5 seconds only ..."
############################WRFPLUS 4DVAR###############################
## WRFPLUS v4.4 4DVAR
## Downloaded from git tagged releases
## WRFPLUS is built within the WRF git folder
## Does not include RTTOV Libarary for radiation data.  If wanted will need to install library then reconfigure
##Note: if you intend to run both 3DVAR and 4DVAR experiments, it is not necessary to compile the code twice. 
#Option 18 for gfortran/gcc and distribunted memory 
########################################################################
cd $HOME/WRF/Downloads
tar -xvzf WRF-4.4.tar.gz -C $HOME/WRF/WRFPLUS
cd $HOME/WRF/WRFPLUS/WRFV4.4
mv * $HOME/WRF/WRFPLUS
cd $HOME/WRF/WRFPLUS
rm -r WRFV4.4/
export NETCDF=$DIR/NETCDF
export HDF5=$DIR/grib2
export LD_LIBRARY_PATH=$DIR/grib2/lib:$LD_LIBRARY_PATH
./clean -a
./configure wrfplus #Option 18 for gfortran/gcc and distribunted memory 
./compile  -j $CPU_HALF_EVEN wrfplus   
export WRFPLUS_DIR=$HOME/WRF/WRFPLUS



read -t 5 -p "I am going to wait for 5 seconds only ..."
############################WRFDA 4DVAR###############################
## WRFDA v4.4 4DVAR
## Downloaded from git tagged releases
## WRFDA is built within the WRFPLUS folder
## Does not include RTTOV Libarary for radiation data.  If wanted will need to install library then reconfigure
##Note: if you intend to run both 3DVAR and 4DVAR experiments, it is not necessary to compile the code twice. 
#Option 18 for gfortran/gcc and distribunted memory 
########################################################################
cd $HOME/WRF/Downloads
tar -xvzf WRF-4.4.tar.gz -C $HOME/WRF/WRFDA
cd $HOME/WRF/WRFDA/WRFV4.4
mv * $HOME/WRF/WRFDA
cd $HOME/WRF/WRFDA
rm -r WRFV4.4/
export NETCDF=$DIR/NETCDF
export HDF5=$DIR/grib2
export LD_LIBRARY_PATH=$DIR/grib2/lib:$LD_LIBRARY_PATH
export WRFPLUS_DIR=$HOME/WRF/WRFPLUS
./clean -a
./configure 4dvar #Option 18 for gfortran/gcc and distribunted memory 
./compile -j $CPU_HALF_EVEN all_wrfvar/ [code]
 
Top