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

Go to the source code of this file.

Functions/Subroutines

subroutine changesurfacebehaviors (inpc, textpart, matname, nmat, nmat_, irstrt, istep, istat, n, iline, ipol, inl, ipoinp, inp, ipoinpc, imat)
 

Function/Subroutine Documentation

◆ changesurfacebehaviors()

subroutine changesurfacebehaviors ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
character*80, dimension(*)  matname,
integer  nmat,
integer  nmat_,
integer  irstrt,
integer  istep,
integer  istat,
integer  n,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(0:*)  ipoinpc,
integer  imat 
)
22 !
23 ! reading the input deck: *CHANGE SURFACE BEHAVIOR
24 !
25  implicit none
26 !
27  character*1 inpc(*)
28  character*80 matname(*),interactionname
29  character*132 textpart(16)
30 !
31  integer nmat,nmat_,istep,istat,n,key,i,irstrt,iline,ipol,inl,
32  & ipoinp(2,*),inp(3,*),ipoinpc(0:*),imat
33 !
34  if(istep.eq.0) then
35  write(*,*) '*ERROR reading *CHANGE SURFACE BEHAVIOR:'
36  write(*,*) ' *CHANGE SURFACE BEHAVIOR'
37  write(*,*) ' cannot be used before the first step'
38  call exit(201)
39  endif
40 !
41  do i=2,n
42  if(textpart(i)(1:12).eq.'INTERACTION=') then
43  interactionname=textpart(i)(13:92)
44  else
45  write(*,*) '*WARNING reading *CHANGE SURFACE BEHAVIOR:'
46  write(*,*) ' parameter not recognized:'
47  write(*,*) ' ',
48  & textpart(i)(1:index(textpart(i),' ')-1)
49  call inputwarning(inpc,ipoinpc,iline,
50  &"*CHANGE SURFACE BEHAVIOR%")
51  endif
52  enddo
53 !
54 ! check whether the interaction exists
55 !
56  imat=0
57  do i=1,nmat
58  if(matname(i).eq.interactionname) then
59  imat=i
60  exit
61  endif
62  enddo
63 !
64  if(imat.eq.0) then
65  write(*,*) '*ERROR reading *CHANGE SURFACE BEHAVIOR:',
66  & interactionname
67  write(*,*) ' is a nonexistent interaction'
68  call exit(201)
69  endif
70 !
71  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
72  & ipoinp,inp,ipoinpc)
73 !
74  return
subroutine inputwarning(inpc, ipoinpc, iline, text)
Definition: inputwarning.f:20
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21
Hosted by OpenAircraft.com, (Michigan UAV, LLC)