CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
triloc.f File Reference

Go to the source code of this file.

Functions/Subroutines

integer function triloc (xp, yp, x, y, v, e, numtri)
 

Function/Subroutine Documentation

◆ triloc()

integer function triloc ( real*8  xp,
real*8  yp,
real*8, dimension(*)  x,
real*8, dimension(*)  y,
integer, dimension(3,*)  v,
integer, dimension(3,*)  e,
integer  numtri 
)
24 !
25  implicit none
26 !
27  integer v(3,*),e(3,*),numtri,v1,v2,i,t,triloc
28 !
29  real*8 x(*),y(*),xp,yp
30 !
31  t=numtri
32  10 continue
33  do 20 i=1,3
34  v1=v(i,t)
35  v2=v(mod(i,3)+1,t)
36  if((y(v1)-yp)*(x(v2)-xp).gt.(x(v1)-xp)*(y(v2)-yp)) then
37  t=e(i,t)
38  goto 10
39  end if
40  20 continue
41  triloc=t
integer function triloc(xp, yp, x, y, v, e, numtri)
Definition: triloc.f:24
static double * v1
Definition: mafillsmmain_se.c:40
Hosted by OpenAircraft.com, (Michigan UAV, LLC)