38 SUBROUTINE i7pen3(MARGE,GAPV,N1 ,N2 ,N3 ,
39 1 PENE ,NX1 ,NY1,NZ1,NX2,
40 2 NY2 ,NZ2 ,NX3,NY3,NZ3,
41 3 NX4 ,NY4 ,NZ4,P1 ,P2 ,
46#include "implicit_f.inc"
54 INTEGER,
INTENT(IN) :: LAST
58 my_real,
DIMENSION(MVSIZ),
INTENT(INOUT) :: n1,n2,n3,pene
59 my_real,
DIMENSION(MVSIZ),
INTENT(INOUT) :: nx1,ny1,nz1
60 my_real,
DIMENSION(MVSIZ),
INTENT(INOUT) :: nx2,ny2,nz2
61 my_real,
DIMENSION(MVSIZ),
INTENT(INOUT) :: nx3,ny3,nz3
62 my_real,
DIMENSION(MVSIZ),
INTENT(INOUT) :: nx4,ny4,nz4
63 my_real,
DIMENSION(MVSIZ),
INTENT(INOUT) :: p1,p2,p3,p4
74 p1(i) =
max(zero, gapv(i) + marge - d1)
77 p2(i) =
max(zero, gapv(i) + marge - d2)
80 p3(i) =
max(zero, gapv(i) + marge - d3)
83 p4(i) =
max(zero, gapv(i) + marge - d4)
87 pene(i) =
max(p1(i),p2(i),p3(i),p4(i))
88 if(p1(i)==pene(i))
then
92 elseif(p2(i)==pene(i))
then
96 elseif(p3(i)==pene(i))
then
100 elseif(p4(i)==pene(i))
then
107 s2 = one/
max(em30,sqrt(n1(i)**2 + n2(i)**2 + n3(i)**2))
subroutine i7pen3(marge, gapv, n1, n2, n3, pene, nx1, ny1, nz1, nx2, ny2, nz2, nx3, ny3, nz3, nx4, ny4, nz4, p1, p2, p3, p4, last)