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

Go to the source code of this file.

Functions/Subroutines

subroutine nidentk (x, px, n, id, k)
 

Function/Subroutine Documentation

◆ nidentk()

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