17 if (nio.eq.0.and.loglevel.gt.2)
18 $
write(6,*)
'vprops', ifield
28 ifvarp(ifield) = .false.
29 if (iflomach) ifvarp(ifield) = .true.
31 if (.not.ifvarp(ifield))
then
34 itype = matype(igrp,ifield)
35 if(itype.ne.0) ifvarp(ifield) = .true.
40 if (ifvarp(ifield)) itest = 1
42 if (itest.gt.0) ifvarp(ifield) = .true.
55 difmin =
vlmin(vdiff(1,1,1,iel,ifield),nxyz1)
56 IF (difmin .LE. 0.0)
THEN
57 WRITE (6,100) difmin,ifield,igrp
61 ELSE IF(matype(igrp,ifield).EQ.1)
THEN
65 cdiff = cpgrp(igrp,ifield,1)
66 ctrans = cpgrp(igrp,ifield,2)
67 CALL cfill(vdiff(1,1,1,iel,ifield),cdiff,nxyz1)
68 CALL cfill(vtrans(1,1,1,iel,ifield),ctrans,nxyz1)
69 IF (cdiff.LE.0.0)
THEN
70 WRITE(6,100) cdiff,ifield,igrp
71 100
FORMAT(2x,
'ERROR: Non-positive diffusivity ('
72 $ ,g12.3,
') specified for field',i2,
', group',i2
74 $ ,/,
'ABORTING in VPROPS',//)
78 ELSE IF(matype(igrp,ifield).EQ.2)
THEN
84 if(optlevel.le.2)
then
85 difmin =
vlmin(vdiff(1,1,1,iel,ifield),nxyz1)
86 IF (difmin .LE. 0.0)
THEN
87 WRITE (6,100) difmin,ifield,igrp
92 ELSE IF(matype(igrp,ifield).EQ.0)
THEN
96 cdiff = cpfld(ifield,1)
97 ctrans = cpfld(ifield,2)
99 CALL cfill(vdiff(1,1,1,iel,ifield),cdiff,nxyz1)
100 CALL cfill(vtrans(1,1,1,iel,ifield),ctrans,nxyz1)
101 IF (cdiff.LE.0.0)
THEN
102 WRITE(6,200) cdiff,ifield
103 200
FORMAT(2x,
'ERROR: Non-positive diffusivity ('
104 $ ,g12.3,
') specified for field',i2,
'.',/
105 $ ,
'ABORTING in VPROPS',//)
subroutine cfill(a, b, n)
real function vlmin(vec, n)