WRF-Hydro NUOPC Cap
 All Classes Files Functions Variables Macros Pages
WRFHydro_NUOPC_Macros.h
Go to the documentation of this file.
1 !-------------------------------------------------------------------------------
2 ! NUOPC CPP Macros
3 !-------------------------------------------------------------------------------
4 #ifndef FILENAME
5 #define FILENAME __FILE__
6 #endif
7 #define CONTEXT line=__LINE__,file=FILENAME
8 #define PASSTHRU msg=ESMF_LOGERR_PASSTHRU,CONTEXT
9 #define ESMF_STDERRORCHECK(rc) ESMF_LogFoundError(rcToCheck=rc,msg=ESMF_LOGERR_PASSTHRU,line=__LINE__,file=__FILE__)
10 
11 !-------------------------------------------------------------------------------
12 ! Define ESMF real kind to match Appplications single/double precision
13 !-------------------------------------------------------------------------------
14 #if defined(REAL4)
15 #define ESMF_KIND_FIELD ESMF_KIND_R4
16 #define ESMF_KIND_COORD ESMF_KIND_R4
17 #define ESMF_TYPEKIND_FIELD ESMF_TYPEKIND_R4
18 #define ESMF_TYPEKIND_COORD ESMF_TYPEKIND_R4
19 #elif defined(REAL8)
20 #define ESMF_KIND_FIELD ESMF_KIND_R8
21 #define ESMF_KIND_COORD ESMF_KIND_R8
22 #define ESMF_TYPEKIND_FIELD ESMF_TYPEKIND_R8
23 #define ESMF_TYPEKIND_COORD ESMF_TYPEKIND_R8
24 #else
25 #define ESMF_KIND_FIELD ESMF_KIND_R4
26 #define ESMF_KIND_COORD ESMF_KIND_R8
27 #define ESMF_TYPEKIND_FIELD ESMF_TYPEKIND_R4
28 #define ESMF_TYPEKIND_COORD ESMF_TYPEKIND_R8
29 #endif
30 
31 !-------------------------------------------------------------------------------
32 ! Define Missing Value
33 !-------------------------------------------------------------------------------
34 
35 #define MISSINGVALUE 999999
36 #define UNINITIALIZED -9999
37 
38 !-------------------------------------------------------------------------------
39 ! Define Output Levels
40 !-------------------------------------------------------------------------------
41 
42 #define VERBOSITY_LV0 0
43 #define VERBOSITY_LV1 1
44 #define VERBOSITY_LV2 255
45 #define VERBOSITY_LV3 1023