IF ( useDiagnostics ) THEN
LOGICAL useDiagnostics
& useDiagnostics, useREGRID, useLayers, useMNC,
if ( useDiagnostics ) then
IF ( useDiagnostics .AND.
IF (useDiagnostics)THEN
IF ( useDiagnostics.AND.writediag ) THEN
IF ( useDiagnostics .AND. GM_taper_scheme.EQ.'fm07' ) THEN
IF ( useDiagnostics .AND. implicitDiffusion .AND.
IF ( useDiagnostics )
IF ( useDiagnostics
if(useDiagnostics) then
IF ( useDiagnostics .AND. myIter.NE.nIter0 ) THEN
IF ( useDiagnostics ) CALL LAND_DIAGNOSTICS_INIT( myThid )
IF ( useDiagnostics .AND. layers_num(iLa).NE.0 ) THEN
IF (useDiagnostics) THEN
IF ( useDiagnostics.AND. .NOT.calcMixLayerDepth ) THEN
IF ( useDiagnostics .AND. implicitViscosity ) THEN
IF ( myIter.NE.nIter0 .AND. useDiagnostics ) THEN
IF ( useDiagnostics .AND. myIter.GE.0 ) THEN
IF ( fluidIsWater .AND. useDiagnostics ) THEN
IF ( calcConvect .AND. useDiagnostics ) THEN
IF ( useDiagnostics .AND. fluidIsWater ) THEN
IF ( useDiagnostics ) diagSufx = '_TH '
IF ( useDiagnostics ) diagSufx = '_SLT'
IF ( useDiagnostics .AND.tracerId.NE.0 ) THEN
IF ( useDiagnostics .AND. diffKh.NE.0. ) THEN
IF ( useDiagnostics .AND. SItrMate(iTr).EQ.'HEFF') THEN
& .AND. useDiagnostics ) THEN
& ( addFrictionHeating .OR. useDiagnostics ) ) THEN
IF ( useDiagnostics ) CALL DIAGNOSTICS_INI_IO( myThid )
useDiagnostics =.FALSE.
CALL PACKAGES_PRINT_MSG( useDiagnostics,'Diagnostics', ' ' )
& useDiagnostics,
IF (useDiagnostics) CALL DIAGNOSTICS_CHECK( myThid )
IF (useDiagnostics)
IF ( useDiagnostics .AND. saltForcing )
IF ( useDiagnostics .AND. AdamsBashforthGs )
IF ( useDiagnostics .AND. implicSurfPress.NE.oneRL ) THEN
ELSEIF ( useDiagnostics ) THEN
IF ( useDiagnostics .AND. tempForcing )
IF ( useDiagnostics .AND. AdamsBashforthGt )
IF ( addFrictionHeating .AND. useDiagnostics ) THEN
IF ( momViscosity .AND. useDiagnostics ) THEN
IF ( momForcing .AND. useDiagnostics ) THEN
IF ( useCDscheme .AND. useDiagnostics ) THEN
useDiagnostics = .FALSE.
CALL PHY_DRIVER( tYear, useDiagnostics,
IF ( .NOT.useDiagnostics ) THEN