DOI-USGS / COAWST

COAWST modeling system git repository
Other
104 stars 48 forks source link

Unable setting up a WRF only application——failed building WRF code to generate any *.exe #178

Open qwdy opened 11 months ago

qwdy commented 11 months ago

Hello everyone!

I followed the user manual trying to set up a WRF-only application. I created my header file 'x.h' in the /Projects/X directory by using '#define WRF_MODEL'. Then I edited coawst.bash file and typed './coawst.bash >& log.txt'. Based on my system, I chose 34 and 1. I could see a link as the manual showed: 'coawstM -> WRF/main/wrf.exe'. But there were no ndown.exe, real.exe, or wrf.exe generated in WRF/main. I attached some files below, I'd appreciate if somebody help with the problem.

Here are some information about my system: COAWST v3.7 ubuntu v18.04 on the virtual machine. gfortran/gcc/cpp v7.5.0 hdf5-1.10.5 jasper-2.0.10 libpng-1.6.37 mpich-3.3 netcdf-c-4.6.3 netcdf-cxx4-4.3.0 netcdf-fortran-4.4.5 zlib-1.2.11

wrf_only.zip

jcwarner-usgs commented 11 months ago

if coawstM points to a wrf.exe, then there is a wrf.exe. can you send a log file that shows the full build? you can do script build.log ./coawst.bash when done type exit and post that file here

qwdy commented 11 months ago

if coawstM points to a wrf.exe, then there is a wrf.exe. can you send a log file that shows the full build? you can do script build.log ./coawst.bash when done type exit and post that file here

Thanks for replying so soon! Here is the biuld.log file. But I need to say there is much Chinese in the original file, I translated most of them to English, or added annotation with # . But I may omit some Chinese to translate ,hope it won't affect your judgment.

Looking forward to your reply again! biuld.log.txt

jcwarner-usgs commented 11 months ago

i looked at the file and there are lots of errors. I am not sure if it is from your version of gfortran or why they happen.

ok i see what happened. You have a project named 'X' and so the cpp changed all the occurrences of X to a 1. this is a bad name for an application. Try a different name.

qwdy commented 11 months ago

Thank you so much for your suggestion! I've compiled WRF successfully after changing my project name. However, unfortunately I met new problem when compliing WPS. I'll post it as a new issue in github. Your support means a lot to me, and I truly appreciate your generosity in offering your help.