39
40
41
43
44
45
46#include "implicit_f.inc"
47#include "comlock.inc"
48
49
50
51#include "com06_c.inc"
52#include "units_c.inc"
53#include "scr07_c.inc"
54#include "scr17_c.inc"
55#include "scr18_c.inc"
56#include "impl1_c.inc"
57
58
59
60 INTEGER, INTENT(IN) :: NEL
61 INTEGER :: NGL(*)
63
64
65
66 INTEGER :: I,J,ICOR
67
68 IF(idtmin(1)==1)THEN
69 icor = 0
70 DO i=1,nel
71 IF(off(i) ==zero)THEN
72 det(i)=1.
73 ELSEIF((det(i)<=volmin).OR.(det(i)<=zero))THEN
74 icor = 1
75 ENDIF
76 ENDDO
77 IF (icor>0.AND.imconv==1) THEN
78 DO i=1,nel
79 IF(off(i)/=zero)THEN
80 IF(det(i)<=volmin)THEN
81 det(i)=one
82 off(i)=zero
83#include "lockon.inc"
84 WRITE(istdo,2000) ngl(i)
85 WRITE(iout ,2000) ngl(i)
86#include "lockoff.inc"
87 idel7nok = 1
88 ELSEIF(det(i)<=zero)THEN
89 CALL ancmsg(msgid=166,anmode=aninfo,i1
90 det(i)= one
91 mstop = 1
92 ENDIF
93 ENDIF
94 ENDDO
95 ENDIF
96 ELSEIF(idtmin(1)==2)THEN
97 icor = 0
98 DO i=1,nel
99 IF(off(i) ==zero)THEN
100 det(i)=one
101 ELSEIF((det(i)<=volmin).OR.(det(i)<=zero))THEN
102 icor=1
103 ENDIF
104 ENDDO
105 IF (icor>0.AND.imconv==1) THEN
106 DO i=1,nel
107 IF((off(i)/=zero).AND.
108 . (det(i)<=volmin.OR.det(i)<=zero))THEN
109 det(i)=one
110 off(i)=zero
111#include "lockon.inc"
112 WRITE(istdo,2000) ngl(i)
113 WRITE(iout ,2000) ngl(i)
114#include "lockoff.inc"
115 idel7nok = 1
116 ENDIF
117 ENDDO
118 ENDIF
119 ELSE
120 icor = 0
121 DO i=1,nel
122 IF(off(i) ==zero)THEN
123 det(i)=one
124 ELSEIF(det(i)<=zero)THEN
125 icor=1
126 ENDIF
127 ENDDO
128 IF (icor>0.AND.imconv==1) THEN
129 DO i=1,nel
130 IF(off(i)/=zero)THEN
131 IF(det(i)<=zero)THEN
132 CALL ancmsg(msgid=166,anmode=aninfo,i1=ngl(i))
133 det(i)= one
134 mstop = 1
135 ENDIF
136 ENDIF
137 ENDDO
138 ENDIF
139 ENDIF
140 RETURN
141
142 1000 FORMAT(/' ZERO OR NEGATIVE VOLUME : 3D-ELEMENT NB',i10/)
143 2000 FORMAT(/' ZERO OR NEGATIVE VOLUME : DELETE 3D-ELEMENT NB',i10/)
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)