Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Thu Feb 22, 2018 8:29 am




Post new topic Reply to topic  [ 4 posts ] 

All times are UTC

Author Message
PostPosted: Mon Mar 19, 2012 1:54 pm 
Offline

Joined: Tue Feb 01, 2005 8:21 pm
Posts: 121
Location: Istanbul Technical University (ITU)
Hi,

I try to run ice code with only ANA_ICE cpp option (no ANA_INITIAL cpp flag is used) but model try to find the ice related variables in the initial condition netcdf file and gives following error,
Code:
 NLM: CHECKVARS - unable to find model variable: uice

I check the code and found that this error comes from '/ROMS/Utility/checkvars.F'. I also try to change cpp flag for ice model from "ifdef ICE_MODEL" to "ifdef ICE_MODEL && !defined ANA_ICE" but problem still continues. Do you have any idea to fix it?

Regards,

--ufuk


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 19, 2012 4:40 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3315
Location: IMS/UAF, USA
Try this syntax:
Code:
# if defined ICE_MODEL || !defined ANA_ICE
You will have to make the same change to get_state.F. Clearly, this isn't a case I tried, so let me know if that isn't the full fix.


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 20, 2012 3:41 pm 
Offline

Joined: Tue Feb 01, 2005 8:21 pm
Posts: 121
Location: Istanbul Technical University (ITU)
Hi,

Thanks Kate. I tried your fix but it gives error in the compile time and i changed it like,

Code:
# if defined ICE_MODEL && !defined ANA_ICE


and it seems working.

Thanks again,

--ufuk


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 20, 2012 4:51 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3315
Location: IMS/UAF, USA
Yes, right you are.


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:  
Powered by phpBB® Forum Software © phpBB Group