53 REAL(DP) X1,X2,X3,Y1,Y2,Y3,DELT,AI1,AI2,AI3,BI1,BI2,BI3,CI1,CI2,CI3
54 REAL(DP) DELTX,DELTY,TEMP1,ANG1,ANG2,B1,B2,ANGLE
55 INTEGER I,II,J,JJ,J1,J2
61 WRITE(
ipt,*)
"! SETTING UP LINEAR INTEROPOLATION COEFFICIENTS" 80 delt=(x1*y2-x2*y1)**2+(x1*y3-x3*y1)**2+(x2*y3-x3*y2)**2
83 a1u(i,1)=(y1+y2+y3)*(x1*y1+x2*y2+x3*y3)- &
84 (x1+x2+x3)*(y1**2+y2**2+y3**2)
86 a1u(i,2)=(y1**2+y2**2+y3**2)*x1-(x1*y1+x2*y2+x3*y3)*y1
88 a1u(i,3)=(y1**2+y2**2+y3**2)*x2-(x1*y1+x2*y2+x3*y3)*y2
90 a1u(i,4)=(y1**2+y2**2+y3**2)*x3-(x1*y1+x2*y2+x3*y3)*y3
93 a2u(i,1)=(x1+x2+x3)*(x1*y1+x2*y2+x3*y3)- &
94 (y1+y2+y3)*(x1**2+x2**2+x3**2)
96 a2u(i,2)=(x1**2+x2**2+x3**2)*y1-(x1*y1+x2*y2+x3*y3)*x1
98 a2u(i,3)=(x1**2+x2**2+x3**2)*y2-(x1*y1+x2*y2+x3*y3)*x2
100 a2u(i,4)=(x1**2+x2**2+x3**2)*y3-(x1*y1+x2*y2+x3*y3)*x3
137 if(
isbce(i) > 1)
then 142 else if(
isbce(i) == 1)
then 144 if(
nbe(i,j) == 0) jj=j
146 j1=jj+1-int((jj+1)/4)*3
147 j2=jj+2-int((jj+2)/4)*3
159 alpha(i)=atan2(delty,deltx)
167 if(
abs(temp1).lt.1.e-6_sp)
then 168 print*,
'shape_f of solid b. c. temp1=0' 169 print*,
'i,jj,j1,j2,x1,x2,y1,y2' 170 print*, i,jj,j1,j2,x1,x2,y1,y2
171 print*,
'x1*y2==',x1*y2
172 print*,
'x2*y1==',x2*y1
189 ang1=359.9_sp/180.0_sp*3.1415926_sp
190 ang2=-0.1_sp/180.0_sp*3.1415926_sp
193 if((
isonb(i).eq.1).and.(
ntve(i).gt.2))
then 195 if(angle.gt.ang1)
then 197 else if(angle.gt.3.1415926_sp)
then 198 angle=angle-2.0_sp*3.1415926_sp
199 else if(angle.lt.-3.1415926_sp)
then 200 angle=angle+2.0_sp*3.1415926_sp
201 else if(angle.lt.ang2)
then 206 if(
isbce(ii).ne.1)
then 208 angle/float(
ntve(i)-1)*float(j-1)
217 WRITE(
ipt,*)
"! INTERP COEFFICIENTS : COMPLETE" real(sp), dimension(:), allocatable, target alpha
real(sp), dimension(:), allocatable, target art
logical function dbg_set(vrb)
real(sp), dimension(:), allocatable, target yc
real(sp), dimension(:,:), allocatable, target a1u
real(sp), dimension(:,:), allocatable, target awx
real(sp), dimension(:,:), allocatable, target aw0
real(sp), dimension(:,:), allocatable, target awy
real(sp), dimension(:), allocatable, target vx
real(sp), dimension(:), allocatable, target vy
integer, dimension(:), allocatable, target ntve
integer, dimension(:,:), allocatable, target nbe
integer, dimension(:,:), allocatable, target nv
real(sp), dimension(:,:), allocatable, target a2u
integer, dimension(:,:), allocatable, target nbve
real(sp), dimension(:), allocatable, target xc
integer, dimension(:), allocatable, target isbce
integer, dimension(:), allocatable, target isonb
integer, parameter dbg_log