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

Go to the source code of this file.

Functions/Subroutines

subroutine bounrem (node, is, iboun, nodeboun, ndirboun, xboun, nboun, iamboun, nam, ikboun, ilboun, typeboun)
 

Function/Subroutine Documentation

◆ bounrem()

subroutine bounrem ( integer  node,
integer  is,
integer  iboun,
integer, dimension(*)  nodeboun,
integer, dimension(*)  ndirboun,
real*8, dimension(*)  xboun,
integer  nboun,
integer, dimension(*)  iamboun,
integer  nam,
integer, dimension(*)  ikboun,
integer, dimension(*)  ilboun,
character*1, dimension(*)  typeboun 
)
21 !
22 ! removes boundary conditions in directions is up to and including
23 ! ie in node "node" in the data base; no transformation is allowed
24 ! in the node
25 !
26  implicit none
27 !
28  character*1 typeboun(*)
29 !
30  integer nodeboun(*),ndirboun(*),node,is,ie,nboun,i,j,
31  & iamboun(*),nam,ikboun(*),ilboun(*),idof,id,iboun
32 !
33  real*8 xboun(*)
34 !
35 c do i=is,ie
36  do i=is,is
37  idof=8*(node-1)+i
38  call nident(ikboun,idof,nboun,id)
39  if(id.gt.0) then
40  if(ikboun(id).eq.idof) then
41 c iboun=ilboun(id)
42  do j=iboun,nboun-1
43  nodeboun(j)=nodeboun(j+1)
44  ndirboun(j)=ndirboun(j+1)
45  xboun(j)=xboun(j+1)
46  typeboun(j)=typeboun(j+1)
47  if(nam.gt.0) iamboun(j)=iamboun(j+1)
48  enddo
49  do j=id,nboun-1
50  ikboun(j)=ikboun(j+1)
51  ilboun(j)=ilboun(j+1)
52  enddo
53  do j=1,nboun-1
54  if(ilboun(j).ge.iboun) then
55  ilboun(j)=ilboun(j)-1
56  endif
57  enddo
58  nboun=nboun-1
59  else
60  write(*,*) '*ERROR in bounrem: the boundary condition'
61  write(*,*) ' cannot be removed since it has'
62  write(*,*) ' not been defined'
63  call exit(201)
64  endif
65  else
66  write(*,*) '*ERROR in bounrem: the boundary condition'
67  write(*,*) ' cannot be removed since it has'
68  write(*,*) ' not been defined'
69  call exit(201)
70  endif
71  enddo
72 !
73  return
subroutine nident(x, px, n, id)
Definition: nident.f:26
Hosted by OpenAircraft.com, (Michigan UAV, LLC)