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

Go to the source code of this file.

Functions/Subroutines

subroutine nident2 (x, px, n, id)
 

Function/Subroutine Documentation

◆ nident2()

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