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

Go to the source code of this file.

Functions/Subroutines

subroutine fill_neiel (nef, ipnei, neiel, neielcp)
 

Function/Subroutine Documentation

◆ fill_neiel()

subroutine fill_neiel ( integer, intent(in)  nef,
integer, dimension(*), intent(in)  ipnei,
integer, dimension(*), intent(in)  neiel,
integer, dimension(*), intent(inout)  neielcp 
)
20 !
21 ! copy neiel into neielcp, thereby substituting the zero's by
22 ! neighboring values
23 !
24  implicit none
25 !
26  integer nef,ipnei(*),neiel(*),neielcp(*) ,i,j,indexf
27 !
28  intent(in) nef,ipnei,neiel
29 !
30  intent(inout) neielcp
31 !
32  do i=1,nef
33  do indexf=ipnei(i)+1,ipnei(i+1)
34  if(neiel(indexf).eq.0) then
35  if(indexf.eq.ipnei(i)+1) then
36  do j=ipnei(i)+2,ipnei(i+1)
37  if(neiel(j).ne.0) then
38  neielcp(indexf)=neiel(j)
39  exit
40  endif
41  enddo
42  else
43  neielcp(indexf)=neielcp(indexf-1)
44  endif
45  else
46  neielcp(indexf)=neiel(indexf)
47  endif
48  enddo
49  enddo
50 !
51  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)