1 *CMZ : 17/07/98 15.44.33 by Federico Carminati
3 C*********************************************************************
5 SUBROUTINE RLUSET(LFN,MOVE)
7 C...Purpose: to read a state of the random number generator from a file
8 C...for subsequent generation 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=120,IOSTAT=IERR)
23 C...Unformatted read from unit LFN.
26 110 READ(LFN,ERR=120,IOSTAT=IERR) (MRLU(I1),I1=1,5),
32 120 WRITE(CHERR,'(I8)') IERR
33 CALL LUERRM(18,'(RLUSET:) error when accessing file, IOSTAT ='//