awips2/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/dgdriv_c/dmdcsr.f
Brad Gonzales 2a3bf4ec32 Issue #628 committing PGEN code received from Plummer on 4-19-2012.
Former-commit-id: fda897d2d0 [formerly 253e8bc948] [formerly 295cbf95e5 [formerly 0816cd253c86acc699cb90866131619c4679f631]]
Former-commit-id: 295cbf95e5
Former-commit-id: ae3d17c698
2012-05-10 16:50:45 -05:00

55 lines
1.4 KiB
Fortran
Executable file

SUBROUTINE DM_DCSR ( iflno, iret )
C************************************************************************
C* DM_DCSR *
C* *
C* This subroutine deletes the conditional searches for a DM file. *
C* *
C* DM_DCSR ( IFLNO, IRET ) *
C* *
C* Input parameters: *
C* IFLNO INTEGER File number *
C* *
C* Output parameters: *
C* IRET INTEGER Return code *
C* 0 = normal return *
C* -4 = file not open *
C** *
C* Log: *
C* M. desJardins/GSFC 4/87 *
C* K. Brill/NMC 12/91 Set SRCFLG to false. Zero KSROW, KSCOL *
C* K. Brill/NMC 01/92 Should NOT set SRCFLG to false *
C************************************************************************
INCLUDE 'GEMPRM.PRM'
INCLUDE 'dmcmn.cmn'
INCLUDE 'dbcmn.cmn'
C-----------------------------------------------------------------------
C* Check that the file is open.
C
CALL DM_CHKF ( iflno, iret )
IF ( iret .ne. 0 ) RETURN
C
C* Initial for A2DB
C
IF ( iflno .ge. 90 ) THEN
stnindx = 0
ntotstn = 0
firstdb = .true.
RETURN
END IF
C
C* Set the number of searches to 0.
C
nsrch ( iflno ) = 0
DO i = 1, MMSRCH
ksnrow ( i, iflno ) = 0
ksncol ( i, iflno ) = 0
END DO
C
C* Zero KSROW, KSCOL.
C
ksrow ( iflno ) = 0
kscol ( iflno ) = 0
C*
RETURN
END