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

Go to the source code of this file.

Functions/Subroutines

subroutine ident (x, px, n, id)
 

Function/Subroutine Documentation

◆ ident()

subroutine ident ( real*8, dimension(n), intent(in)  x,
real*8, intent(in)  px,
integer, intent(in)  n,
integer, intent(out)  id 
)
26  implicit none
27 !
28  integer n,id,n2,m
29 !
30  real*8 x(n),px
31 !
32  intent(in) x,px,n
33 !
34  intent(out) id
35 !
36  id=0
37  if(n.eq.0) return
38  n2=n+1
39  do
40  m=(n2+id)/2
41  if(px.ge.x(m)) then
42  id=m
43  else
44  n2=m
45  endif
46  if((n2-id).eq.1) return
47  enddo
Hosted by OpenAircraft.com, (Michigan UAV, LLC)