question on define

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
gongjie_wang
Posts: 5
Joined: Mon Nov 28, 2011 4:35 pm
Location: Ocean University of China

question on define

#1 Unread post by gongjie_wang »

#define LMD_MIXING
#ifdef LMD_MIXING
# define LMD_RIMIX
# define LMD_CONVEC
# define LMD_SKPP
# define LMD_NONLOCAL
#endif

this's a part of a .h file.may you tell me could i write them like the follow:
#define LMD_MIXING
# define LMD_RIMIX
# define LMD_CONVEC
# define LMD_SKPP
# define LMD_NONLOCAL
is this right too?

linzhenhua
Posts: 64
Joined: Mon Oct 17, 2005 2:02 am
Location: Institute of Oceanology,Chinese Academy of Sciences

Re: question on define

#2 Unread post by linzhenhua »

I think you could. But you should know the original version could be easily switched off by changing only one line, which is very convenient.

Post Reply