1 *CMZ : 17/07/98 15.44.33 by Federico Carminati
3 C*********************************************************************
5 SUBROUTINE RLUGET(LFN,MOVE)
7 C...Purpose: to dump the state of the random number generator on a file
8 C...for subsequent startup from this state onwards.
10 COMMON /LUDATR/ MRLU(6),RRLU(100)
15 C...Backspace required number of records (or as many as there are).
17 NBCK=MIN(MRLU(6),-MOVE)
19 100 BACKSPACE(LFN,ERR=110,IOSTAT=IERR)
23 C...Unformatted write on unit LFN.
24 WRITE(LFN,ERR=110,IOSTAT=IERR) (MRLU(I1),I1=1,5),
30 110 WRITE(CHERR,'(I8)') IERR
31 CALL LUERRM(18,'(RLUGET:) error when accessing file, IOSTAT ='//