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

Go to the source code of this file.

Functions/Subroutines

subroutine nident (x, px, n, id)
 

Function/Subroutine Documentation

◆ nident()

subroutine nident ( integer, dimension(n), intent(in)  x,
integer, intent(in)  px,
integer, intent(in)  n,
integer, intent(out)  id 
)
26 !
27  implicit none
28 !
29  integer x,px,n,id,n2,m
30 !
31  dimension x(n)
32 !
33  intent(in) x,px,n
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(m)) 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)