hi,
I want to know which cpp option active the variable 'swrad'. I try to it, but failed. Anyone can tell me? Many thanks!
**********************************************************************
Activated C-preprocessing Options:
 ECS                 East of China Sea
 ANA_BTFLUX          Analytical kinematic bottom temperature flux.
 ANA_FSOBC           Analytical free-surface boundary conditions.
 ANA_INITIAL         Analytical initial conditions.
 ANA_M2OBC           Analytical 2D momentum boundary conditions.
 ANA_SMFLUX          Analytical kinematic surface momentum flux.
 ANA_STFLUX          Analytical kinematic surface temperature flux.
 ASSUMED_SHAPE       Using assumed-shape arrays.
 CURVGRID            Orthogonal curvilinear grid.
 DEBUGGING           Internal debugging switch activated.
 DJ_GRADPS           Parabolic Splines density Jacobian (Shchepetkin, 2002).
 DOUBLE_PRECISION    Double precision arithmetic.
 INLINE_2DIO         Processing 3D IO level by level to reduce memory needs.
 LMD_CONVEC          LMD convective mixing due to shear instability.
 LMD_MIXING          Large/McWilliams/Doney interior mixing.
 LMD_NONLOCAL        LMD convective nonlocal transport.
 LMD_SHAPIRO         Shapiro filtering boundary layer depth.
 LMD_SKPP            KPP surface boundary layer mixing.
 MASKING             Land/Sea masking.
 MIX_S_UV            Mixing of momentum along constant S-surfaces.
 MPI                 MPI distributed-memory configuration.
 NONLINEAR           Nonlinear Model.
 !NONLIN_EOS         Linear Equation of State for seawater.
 POWER_LAW           Power-law shape time-averaging barotropic filter.
 PROFILE             Time profiling activated .
 RAMP_TIDES          Ramping tidal forcing for one day.
 !RST_SINGLE         Double precision fields in restart NetCDF file.
 SOLVE3D             Solving 3D Primitive Equations.
 SPLINES             Conservative parabolic spline reconstruction.
 SSH_TIDES           Add tidal elevation to SSH climatology.
 STATIONS            Writing out station data.
 STATIONS_CGRID      Extracting station data at native C-grid locations.
 TS_C4HADVECTION     Fourth-order centered horizontal advection of tracers.
 TS_C4VADVECTION     Fourth-order centered vertical advection of tracers.
 UV_ADV              Advection of momentum.
 UV_COR              Coriolis term.
 UV_C4ADVECTION      Fourth-order centered differences advection of momentum.
 UV_QDRAG            Quadratic bottom stress.
 UV_TIDES            Add tidal currents to 2D momentum climatologies.
 UV_VIS2             Harmonic mixing of momentum.
 VAR_RHO_2D          Variable density barotropic mode.
 VISC_GRID           Horizontal viscosity coefficient scaled by grid size.
INQUIRE     - unable to find requested variable: swrad
*****************************************************************************
			
			
									
									
						inquire -swrad
Re: inquire -swrad
The answer is LMD_SKPP. This is from globaldefs.h:
			
			
									
									
						Code: Select all
#if defined LMD_SKPP     || defined SOLAR_SOURCE   || \
    defined BULK_FLUXES  || defined BIOLOGY
# define SHORTWAVE
#endif
- 
				wangzc
 - Posts: 28
 - Joined: Fri Dec 28, 2012 5:44 am
 - Location: National Marine Environmental Forecasting Center
 
Re: inquire -swrad
Thank U, Kate!
I see it in globaldefs.h. All needed cpp options can be found here. As a beginner, everyone can face 'inquire' problems. Share to all the experience.
Error prompt: INQUIRE - unable to find requested variable: ***
$cd trunk/
$grep -n *** -r ./ !find the variable *** in the folder and subfolder
Then check out the related file to see '#define' what. After that, locate the line via '/ what' to make sure the related cpp options.
--zongchen
			
			
									
									
						I see it in globaldefs.h. All needed cpp options can be found here. As a beginner, everyone can face 'inquire' problems. Share to all the experience.
Error prompt: INQUIRE - unable to find requested variable: ***
$cd trunk/
$grep -n *** -r ./ !find the variable *** in the folder and subfolder
Then check out the related file to see '#define' what. After that, locate the line via '/ what' to make sure the related cpp options.
--zongchen