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

Go to the source code of this file.

Functions/Subroutines

subroutine dampings (inpc, textpart, xmodal, istep, istat, n, iline, ipol, inl, ipoinp, inp, ipoinpc, irstrt)
 

Function/Subroutine Documentation

◆ dampings()

subroutine dampings ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
real*8, dimension(*)  xmodal,
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  irstrt 
)
21 !
22 ! reading the input deck: *DAMPING
23 !
24  implicit none
25 !
26  character*1 inpc(*)
27  character*132 textpart(16)
28 !
29  integer istep,istat,n,key,iline,ipol,inl,ipoinp(2,*),
30  & inp(3,*),ipoinpc(0:*),i,irstrt
31 !
32  real*8 xmodal(*)
33 !
34  if((istep.gt.0).and.(irstrt.ge.0)) then
35  write(*,*) '*ERROR reading *DAMPING: *DAMPING should be placed'
36  write(*,*) ' before all step definitions'
37  call exit(201)
38  endif
39 !
40  do i=2,n
41  if(textpart(i)(1:6).eq.'ALPHA=') then
42  read(textpart(i)(7:26),'(f20.0)',iostat=istat) xmodal(1)
43  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
44  & "*DAMPING%")
45  elseif(textpart(i)(1:5).eq.'BETA=') then
46  read(textpart(i)(6:25),'(f20.0)',iostat=istat) xmodal(2)
47  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
48  & "*DAMPING%")
49  else
50  write(*,*)
51  & '*WARNING reading *DAMPING: parameter not recognized:'
52  write(*,*) ' ',
53  & textpart(i)(1:index(textpart(i),' ')-1)
54  call inputwarning(inpc,ipoinpc,iline,
55  &"*DAMPING%")
56  endif
57  enddo
58 !
59  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
60  & ipoinp,inp,ipoinpc)
61 !
62  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
subroutine inputerror(inpc, ipoinpc, iline, text)
Definition: inputerror.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)