how to choose cpp?

Suggest improvements/optimizations to the ROMS code.

Moderators: arango, robertson

Post Reply
Message
Author
hezhi
Posts: 10
Joined: Wed Apr 11, 2018 2:31 pm
Location: FIO

how to choose cpp?

#1 Unread post by hezhi »

Dear all,
I write #define VISC2 into cpp.h and make,however I find that roms invoking VISC4。I don’t know which is in conflict with VISC2 in cpp.h?now I need your help。

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

Re: how to choose cpp?

#2 Unread post by kate »

The code I have calls it UV_VIS2, not VISC2. Asking for a flag ROMS doesn't know about is like asking for #define MARS, not going to do anything. Which ROMS are you using?

hezhi
Posts: 10
Joined: Wed Apr 11, 2018 2:31 pm
Location: FIO

Re: how to choose cpp?

#3 Unread post by hezhi »

Sorry,I write #define UV_VISC2 into cpp.h。

hezhi
Posts: 10
Joined: Wed Apr 11, 2018 2:31 pm
Location: FIO

Re: how to choose cpp?

#4 Unread post by hezhi »

out.png
out.png (13.31 KiB) Viewed 8834 times
cpp.png
cpp.png (7.23 KiB) Viewed 8834 times

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

Re: how to choose cpp?

#5 Unread post by kate »

What advection scheme are you using? There's this block in globaldefs.h:

Code: Select all

#ifdef UV_U3ADV_SPLIT
# define VISC_3DCOEF
# ifndef UV_C4ADVECTION
#  define UV_C4ADVECTION
# endif
# ifndef UV_VIS4
#  define UV_VIS4
# endif
# ifdef UV_VIS2
#  undef UV_VIS2
# endif
# ifdef UV_SMAGORINSKY
#  undef UV_SMAGORINSKY
# endif
#endif

hezhi
Posts: 10
Joined: Wed Apr 11, 2018 2:31 pm
Location: FIO

Re: how to choose cpp?

#6 Unread post by hezhi »

I need globaldefs.h and find the reason of my problem. Thank you very much.

Post Reply