IF (useMNC .AND. autodiff_mnc) THEN
IF (useMNC .AND. monitor_mnc) THEN
LOGICAL useMNC
& useDiagnostics, useREGRID, useLayers, useMNC,
if (useMNC) then
IF (useMNC) THEN
IF ( useMNC .and. fizhi_mnc_read_pickup ) THEN
IF (useMNC.AND. pickup_write_mnc) THEN
IF ( useMNC .AND. pickup_read_mnc ) THEN
IF ( useMNC .AND. pickup_write_mnc ) THEN
GM_MNC = useMNC
GM_MNC = GM_MNC .AND. useMNC
IF (KPPwriteState .AND. useMNC .AND. snapshot_mnc) THEN
IF (KPPwriteState .AND. useMNC .AND. timeave_mnc) THEN
IF ( useMNC ) THEN
IF ( useMNC .AND. land_mon_mnc ) THEN
land_timeave_mnc = timeave_mnc .AND. useMNC
land_snapshot_mnc = snapshot_mnc .AND. useMNC
land_mon_mnc = monitor_mnc .AND. useMNC
land_pickup_write_mnc = pickup_write_mnc .AND. useMNC
land_pickup_read_mnc = pickup_read_mnc .AND. useMNC
land_timeave_mnc = useMNC .AND. land_timeave_mnc
land_snapshot_mnc = useMNC .AND. land_snapshot_mnc
land_mon_mnc = useMNC .AND. land_mon_mnc
land_pickup_write_mnc = useMNC .AND. land_pickup_write_mnc
land_pickup_read_mnc = useMNC .AND. land_pickup_read_mnc
layers_MNC = layers_MNC .AND. useMNC
IF ( .NOT.useMNC ) THEN
useMNC = .FALSE.
IF (useMNC .AND. snapshot_mnc .AND. writeDiag) THEN
IF (useMNC .AND. snapshot_mnc) THEN
IF (useMNC .AND. mon_write_mnc) THEN
IF (MYwriteState .AND. useMNC .AND. snapshot_mnc ) THEN
IF (MYwriteState .AND. useMNC .AND. timeave_mnc) THEN
myPa_MNC = myPa_MNC .AND. useMNC
myPa_MNC = useMNC
IF ( useMNC.AND.cpl_timeave_mnc ) THEN
& .OR. (useMNC.AND.PTRACERS_monitor_mnc) ) THEN
IF (useMNC .AND. PTRACERS_monitor_mnc) THEN
IF ( useMNC .AND. PTRACERS_pickup_read_mnc ) THEN
PTRACERS_timeave_mnc = useMNC .AND. timeave_mnc
PTRACERS_snapshot_mnc = useMNC .AND. snapshot_mnc
PTRACERS_monitor_mnc = useMNC .AND. monitor_mnc
PTRACERS_pickup_write_mnc = useMNC .AND. pickup_write_mnc
PTRACERS_pickup_read_mnc = useMNC .AND. pickup_read_mnc
PTRACERS_timeave_mnc = useMNC .AND. PTRACERS_timeave_mnc
PTRACERS_snapshot_mnc = useMNC .AND. PTRACERS_snapshot_mnc
PTRACERS_monitor_mnc = useMNC .AND. PTRACERS_monitor_mnc
PTRACERS_pickup_write_mnc = useMNC .AND. PTRACERS_pickup_write_mnc
PTRACERS_pickup_read_mnc = useMNC .AND. PTRACERS_pickup_read_mnc
IF ( useMNC .AND. PTRACERS_pickup_write_mnc ) THEN
IF (.NOT. useMNC) THEN
REGRID_MNC = useMNC
REGRID_MNC = REGRID_MNC .AND. useMNC
IF ( useMNC .AND.
IF (useMNC .AND. SEAICE_mon_mnc) THEN
IF (useMNC .AND. SEAICE_tave_mnc) THEN
IF ( useMNC .AND. SEAICE_dump_mnc ) THEN
IF (useMNC .AND. readgrid_mnc) THEN
IF (useMNC .AND. mnc_read_bathy) THEN
IF ( useMNC .AND. (shelfice_tave_mnc.OR.shelfice_dump_mnc)
IF (useMNC .AND. SHELFICE_tave_mnc) THEN
IF ( useMNC .AND. SHELFICE_dump_mnc ) THEN
IF ( useMNC .AND. (streamice_tave_mnc.OR.streamice_dump_mnc)
IF (useMNC .AND. thSIce_mon_mnc) THEN
IF ( useMNC .AND. thSIce_tave_mnc ) THEN
IF ( useMNC.AND.timeave_mnc ) THEN
IF (useMNC .AND. timeave_mnc) THEN
IF ( useMNC.AND.mnc_read_salt ) THEN
IF ( useMNC.AND.mnc_read_theta ) THEN
useMNC =.FALSE.
CALL PACKAGES_PRINT_MSG( useMNC, 'MNC', ' ' )
& useMNC,
IF (useMNC .AND. pickup_read_mnc) THEN
IF ( useMNC .AND. writegrid_mnc ) THEN
IF ( useMNC .AND. (usingCurvilinearGrid .OR. rotateGrid) ) THEN
IF (useMNC .AND. pickup_write_mnc) THEN
IF ( useMNC .AND. aim_snapshot_mnc ) THEN
aim_timeave_mnc = timeave_mnc .AND. useMNC
aim_snapshot_mnc = snapshot_mnc .AND. useMNC
aim_pickup_write_mnc = pickup_write_mnc .AND. useMNC
aim_pickup_read_mnc = pickup_read_mnc .AND. useMNC
aim_timeave_mnc = useMNC .AND. aim_timeave_mnc
aim_snapshot_mnc = useMNC .AND. aim_snapshot_mnc
aim_pickup_write_mnc = useMNC .AND. aim_pickup_write_mnc
aim_pickup_read_mnc = useMNC .AND. aim_pickup_read_mnc
IF (useMNC .AND. aim_timeave_mnc) THEN
IF (useMNC .AND. diag_mnc) THEN
diag_mnc = useMNC
diag_mnc = diag_mnc .AND. useMNC
diagSt_mnc = diagSt_mnc .AND. useMNC