What does CPP flag # SPHERICAL do?

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
liyizhen837
Posts: 11
Joined: Tue Aug 21, 2007 5:44 pm
Location: North Carolina State University

What does CPP flag # SPHERICAL do?

#1 Unread post by liyizhen837 »

Hi,

I just saw that in the data assimilation flag WC13, there is a cpp definition #SPHERICAL turned on.
In cppdefs it mentions "use if analytical spherical grid".

Obviously it's nothing associated with the flag spherical in the grid file,
which is a flag for if it's in realistic lon,lat coordinate or not.

Anyone could suggest when we should define this in cpp? :roll:

Thanks much,
Yizhen

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

Re: What does CPP flag # SPHERICAL do?

#2 Unread post by kate »

The way to know for sure is to search for that string in the source files and see what's there.

liyizhen837
Posts: 11
Joined: Tue Aug 21, 2007 5:44 pm
Location: North Carolina State University

Re: What does CPP flag # SPHERICAL do?

#3 Unread post by liyizhen837 »

kate wrote:The way to know for sure is to search for that string in the source files and see what's there.
Thanks Kate.

It appears in ana_grid only, and it's only used in analytical grid applications.
Functionals/ana_grid.h:#ifdef SPHERICAL

Therefore in WC13 4DVAR experiment, SPHERICAL option was not really turned on, although
the log file shows it because:
Utility/checkdefs.F: IF (Master) WRITE (stdout,20) 'SPHERICAL', &

Regards,
Yizhen :P

Post Reply