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

Go to the source code of this file.

Functions/Subroutines

subroutine ident2 (x, px, n, ninc, id)
 

Function/Subroutine Documentation

◆ ident2()

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