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 Unread post by Alex5 »

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: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS-WRF compiling problem

#2 Unread post by jcwarner »

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 Unread post by Alex5 »

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: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS-WRF compiling problem

#4 Unread post by jcwarner »

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

Re: ROMS-WRF compiling problem

#5 Unread post by venuscheung »

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

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

Re: ROMS-WRF compiling problem

#6 Unread post by jcwarner »

"*****************************************************************************
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