ROMS-WRF compiling problem

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
Alex5
Posts: 12
Joined: Tue Oct 08, 2013 4:46 pm
Location: HongKong

ROMS-WRF compiling problem

#1 Post by Alex5 » Wed Dec 17, 2014 11:02 am

Dear all,

I get the source code from USGS and try to couple WRF and ROMS.
WRF could be compiled successfully, but there were some problems for ROMS compilation as followings:

distribute.f90(2074): error #7013: This module file was not generated by any release of this compiler. [NETCDF]
USE netcdf
----------^
distribute.f90(2476): error #7013: This module file was not generated by any release of this compiler. [NETCDF]
USE netcdf
----------^
distribute.f90(2109): error #6404: This name does not have a type, and must have an explicit type. [NF90_NOERR]
mp_ncread1d=nf90_noerr
------------------^


Does anyone have an idea about this? Any suggestions are greatly appreciated.

Alex

jcwarner
Posts: 815
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS-WRF compiling problem

#2 Post by jcwarner » Wed Dec 17, 2014 1:57 pm

this looks like a netcdf issue.
It is essentially saying that the compiler you chose (ifort or pgi or gfortran?) is not the same compiler (or version of that compiler) that was used to compile the netcdf libraries.
To compile ROMS, and eventually with COAWST, you need to select a compiler, mpi, netcdf, and MCT all that are built with that compiler.

-john

Alex5
Posts: 12
Joined: Tue Oct 08, 2013 4:46 pm
Location: HongKong

Re: ROMS-WRF compiling problem

#3 Post by Alex5 » Thu Dec 18, 2014 8:59 am

Thanks very much John.
The last problem was solved, but I got a new one as following:

mct_coupler_params.f90(2): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MCT_WRF_COUPLER_PARAMS]
USE mct_wrf_coupler_params
----------^


I have checked my INCLUDE paths, there were no wrong directions. By the way, I can not find mct_wrf_coupler_params anywhere.
Do you have any suggestions about this.

Regards,
Alex

jcwarner
Posts: 815
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS-WRF compiling problem

#4 Post by jcwarner » Thu Dec 18, 2014 3:18 pm

ok. i have seen this before.
the error you are seeing is at the end of the log file, but the problem is probably somewhere way near the top. WRF will keep building even after it encounters a problem. Since this has nothing to do with Rutgers, we can either move this to the coawst trac site, or you you can send me an email after doing this:

type
scrip build.log
./coawst.bash
exit

and then send the build.log to
jcwarner@usgs.gov

venuscheung
Posts: 30
Joined: Thu Oct 03, 2019 4:43 pm
Location: the Chinese University of Hong Kong

Re: ROMS-WRF compiling problem

#5 Post by venuscheung » Tue Nov 05, 2019 7:12 am

Hello, I also share the same problem, the attached is my build.log
Attachments
build.log
(344.63 KiB) Downloaded 3 times

jcwarner
Posts: 815
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS-WRF compiling problem

#6 Post by jcwarner » Tue Nov 05, 2019 12:59 pm

"*****************************************************************************
No environment variable NETCDF set.
Stopping
*****************************************************************************

"

Please go through the log file closely. WRF needs to have the locations of the netcdf libs. Of course, this will be a different method than roms needs. We describe all this in the user manual.
for wrf, you need to
export NETCDF=...netcdfxxx/
for roms it is
export NETCDF_INCDIR=...netcdfxxx/include
export NETCDF_LIBDIR=...netcdfxxx/lib

Post Reply