LOGICAL diagForcing, diagAB_tend
diagAB_tend = .FALSE.
& diagAB_tend = DIAGNOSTICS_IS_ON( diagName, myThid )
IF ( diagAB_tend ) THEN
& diagAB_tend = DIAGNOSTICS_IS_ON( 'AB_gS ', myThid )
& diagAB_tend = DIAGNOSTICS_IS_ON( 'AB_gT ', myThid )