1 *CMZ : 17/07/98 15.44.33 by Federico Carminati
3 C*********************************************************************
5 SUBROUTINE LUERRM(MERR,CHMESS)
7 C...Purpose: to inform user of errors in program execution.
9 COMMON /LUJETS/ N,K(200000,5),P(200000,5),V(200000,5)
12 COMMON /LUDAT1/ MSTU(200),PARU(200),MSTJ(200),PARJ(200)
17 C...Write first few warnings, then be silent.
21 IF(MSTU(25).EQ.1.AND.MSTU(27).LE.MSTU(26)) WRITE(MSTU(11),1000)
22 & MERR,MSTU(31),CHMESS
24 C...Write first few errors, then be silent or stop program.
25 ELSEIF(MERR.LE.20) THEN
28 IF(MSTU(21).GE.1.AND.MSTU(23).LE.MSTU(22)) WRITE(MSTU(11),1100)
29 & MERR-10,MSTU(31),CHMESS
30 IF(MSTU(21).GE.2.AND.MSTU(23).GT.MSTU(22)) THEN
31 WRITE(MSTU(11),1100) MERR-10,MSTU(31),CHMESS
33 IF(MERR.NE.17) CALL LULIST(2)
37 C...Stop program in case of irreparable error.
39 WRITE(MSTU(11),1300) MERR-20,MSTU(31),CHMESS
43 C...Formats for output.
44 1000 FORMAT(/5X,'Advisory warning type',I2,' given after',I6,
45 &' LUEXEC calls:'/5X,A)
46 1100 FORMAT(/5X,'Error type',I2,' has occured after',I6,
47 &' LUEXEC calls:'/5X,A)
48 1200 FORMAT(5X,'Execution will be stopped after listing of last ',
50 1300 FORMAT(/5X,'Fatal error type',I2,' has occured after',I6,
51 &' LUEXEC calls:'/5X,A/5X,'Execution will now be stopped!')