netcdf.mod | impossible to solve

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
bsas
Posts: 7
Joined: Wed Jun 27, 2018 9:51 pm
Location: Tenerife

netcdf.mod | impossible to solve

#1 Unread post by bsas »

Hello everyone.

I have an error when compiling ROMS. It is a known error, but I can not solve it and I have executed all the recommendations. The fault is:

cp -f /usr/local/include/netcdf.mod /home/company/har/bsg/project/upwelling/Build
cp: can not stat '/usr/local/include/netcdf.mod': No such file or directory

I have Netcdf installed correctly. I have put the full path to NF_CONFIG to NETCDF_INCDIR and to NETCDF_LIBDIR. The problem in that when I run the build.bash script it keeps looking for the netcdf.mod file in the path that it is not.

Has anyone managed to solve this step?

Thank you very much.

bsas
Posts: 7
Joined: Wed Jun 27, 2018 9:51 pm
Location: Tenerife

Re: netcdf.mod | impossible to solve

#2 Unread post by bsas »

Hi.

Someone could help me, I'm still stuck in the same step.

Thank you very much.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: netcdf.mod | impossible to solve

#3 Unread post by kate »

Did you set USE_NETCDF4? I would. I would also clean out that whole NETCDF_INCDIR section of the build.bash so that it's clearer what code is actually being used.

In fact, I don't use build.bash, but then you have to go back to an older Makefile that still works without build.bash.

bsas
Posts: 7
Joined: Wed Jun 27, 2018 9:51 pm
Location: Tenerife

Re: netcdf.mod | impossible to solve

#4 Unread post by bsas »

Hi. Sorry for the error, I had the following in build.bash:

export USE_NETCFD=on

The letter F is before the D. Believe me that I read the command about 100 times and I did not realize. As you told me if the command was well placed, I read it again and saw it.

Now you find the file. I have another error, but it's from gfortran, so NETCDF is fixed.

Thank you very much for the reply.

Post Reply