You are on page 1of 3

Codigo Fortran Minesight

C Skeleton for USER 612V1 subroutine - 99 ITEM version

C=======================================================================

C See the M612V1 doc and the Technical 600 Section of the doc for a

C complete description of Argument List and COMMON Block variables.

C Use command file bldusr (BLDUSR.BAT on PC) to build your user

C subroutine program. Instructions are in the command file.

C=======================================================================

SUBROUTINE USR612D(NTRY, IZ,ZMID, IROW,YROW, MCOL,NCOL, MAP,RMX,

& MXCOL, MXROW, MAXITM)

DIMENSION RMX(MXCOL,MAXITM), MAP(MXCOL)

PARAMETER (MAXPAR = 40, MXITM = 99, MXNIC = 40)

COMMON

& /SYS/ NAMES(80), RNID(20), IOP(MAXPAR), PAR(MAXPAR), IFMT(20,4),

& LDAY(4), LALF(20), ICR, IPR, LCR, LPR, LINE, LLIM,

& IHS, JUCMD, IRTYPE , IOLEV, RUNUMB, USER, LBTS,

& IPDP, IHEAD(8), NPAGE, NDOCL, LDOC(15,5)

COMMON

& /ITM/ ITM(3,MXITM), NIC(5,MXNIC), ITEMS, NICNO,

& LWRD(MXITM), NBIT(MXITM), LBIT(MXITM),


& VMIN(MXITM), CODE(MXITM), ROND(MXITM),

& VMAX(MXITM), MAXV(MXITM), RDAT(MXITM), IDAT(MXITM)

DIMENSION IPCF(512)

COMMON /F10/ PCF(512), XDUMD(142)

EQUIVALENCE ( PCF(1), IPCF(1) )

C=======================================================================

C .................................................. NTRY=-1(Init)

IF ( NTRY .EQ. -1 ) THEN

C here once at the beginning of the run

C .................................................. NTRY=0 (Row)

ELSE IF ( NTRY .EQ. 0 ) THEN

C here after data for an entire model row is read

C .................................................. NTRY=1 (Bench)

ELSE IF ( NTRY .EQ. 1 ) THEN

C here after data for the last row in the current bench

C .................................................. NTRY=2 (End)

ELSE IF ( NTRY .EQ. 2 ) THEN

C here once at the end of the run

END IF

900 CONTINUE

RETURN
END

You might also like