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

Error while compiling WRF ARWpost

Prachi

New member
Hey

I am facing certain errors while compiling WRF ARWpost. I have successfully configured the same but while compiling I have issues.
Sharing compile.log file for reference.
 

Attachments

  • compile.log
    11.8 KB · Views: 7
Hey

I am facing certain errors while compiling WRF ARWpost. I have successfully configured the same but while compiling I have issues.
Sharing compile.log file for reference.
ARWpost is very tricky to get to work. Since it is no longer support (as far as I know) you have to manually change stuff to get it to work.
@Prachi Are you familiar with python at all?
 
ARWpost is very tricky to get to work. Since it is no longer support (as far as I know) you have to manually change stuff to get it to work.
@Prachi Are you familiar with python at all?
Yes, i am. i am well versed in pyhton but using windows operator.
If you could guide me how to proceed, i will follow.

Since I am stuck at the last stage of installation, any leads will be highly appreciated.
 
@Prachi it's midnight here in the states. I will do it first thing in the morning. Simple changes but I already shut down the PC with the installation code I have done.
 
oh okay.
What would I have to do after you share the code.
Please guide in step wise process for easy installation.
Thanks.
 
@Prachi

Good morning


I would encourage you to explore wrf-python as well as it is where NCAR is heading for post/pre processing of WRF.

However this is the steps to fix ARWpost.

1. Navigate to the ARWpost folder where you extracted the files from the tar file.

Bash:
cd  /path/to/ARWpost


2. run a clean command to remove all pre configured settings
Bash:
./clean -a



3. you sed command to change these strings in the Makefile for ARWpost
Bash:
sed -i -e 's/-lnetcdf/-lnetcdff -lnetcdf/g' /path/to/your/ARWpost/src/Makefile


4. Make sure you export the NETCDF Director where netcdf files are installed. Not NETCDF-C and NETCDF-Fortran need to be in the same folder
Bash:
export NETCDF=/path/to/netcdf/folder/


5. run the configure command for ARWpost
Bash:
./configure


6. If you are using GNU (gcc/gfortran/g++) version greater than 10.0.0 then you need the following sed statement
Bash:
 sed -i '32s/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 ${fallow_argument} /g'  /path/to/ARWpost/configure.arwp


7. Change the order of flags in ARWpost configure file
Bash:
sed -i -e 's/-C -P -traditional/-P -traditional/g' $WRF_FOLDER/ARWpost/configure.arwp


8. Run the compile command
Bash:
./compile


9. Export the ARWpost.exe to $PATH
Bash:
 export PATH=$WRF_FOLDER/ARWpost/ARWpost.exe:$PATH


That should help you.
There is no sed command in the makefile in src folder.
Can you help me locate the same.
 
so it would be something like this on my machine

/path/to/ARWpost ----> /home/workhorse/Build_WRF/ARWpost
its the absolute file path for your system. Since I don't know what your system setup is the convention for writing it out would be /path/to/your/files/example.file.sh
 
Yes, understood. followed the command lines but same error persists, rank mismatch and makefile error
I made a mistake.

I put an argument into # 6.

it should be this

Bash:
 sed -i '32s/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 -fallow-argument-mismatch /g'  /path/to/ARWpost/configure.arwp
 
I made a mistake.

I put an argument into # 6.

it should be this

Bash:
 sed -i '32s/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 -fallow-argument-mismatch /g'  /path/to/ARWpost/configure.arwp
@Prachi I apologize I copied the code directly from my install code, so I forgot that I have exports preset in my bashrc file.
 
Top