Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Sun Dec 16, 2018 2:20 am




Post new topic Reply to topic  [ 4 posts ] 

All times are UTC

Author Message
PostPosted: Thu Jun 28, 2018 10:01 pm 
Offline

Joined: Wed Jun 27, 2018 9:51 pm
Posts: 7
Location: Tenerife
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.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 30, 2018 9:23 am 
Offline

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

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

Thank you very much.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 30, 2018 3:09 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3517
Location: IMS/UAF, USA
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.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 30, 2018 4:15 pm 
Offline

Joined: Wed Jun 27, 2018 9:51 pm
Posts: 7
Location: Tenerife
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group