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

Go to the source code of this file.

Functions/Subroutines

subroutine specificgasconstants (inpc, textpart, shcon, nshcon, nmat, ntmat_, irstrt, istep, istat, n, iline, ipol, inl, ipoinp, inp, ipoinpc)
 

Function/Subroutine Documentation

◆ specificgasconstants()

subroutine specificgasconstants ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
real*8, dimension(0:3,ntmat_,*)  shcon,
integer, dimension(*)  nshcon,
integer  nmat,
integer  ntmat_,
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 
)
22 !
23 ! reading the input deck: *SPECIFIC GAS CONSTANT
24 !
25  implicit none
26 !
27  character*1 inpc(*)
28  character*132 textpart(16)
29 !
30  integer nshcon(*),nmat,ntmat_,istep,istat,n,ipoinpc(0:*),
31  & key,irstrt,iline,ipol,inl,ipoinp(2,*),inp(3,*),i
32 !
33  real*8 shcon(0:3,ntmat_,*)
34 !
35  if((istep.gt.0).and.(irstrt.ge.0)) then
36  write(*,*) '*ERROR in specificheats: *SPECIFIC GAS CONSTANT'
37  write(*,*) ' should be placed before all step definitions'
38  call exit(201)
39  endif
40 !
41  if(nmat.eq.0) then
42  write(*,*) '*ERROR in specificheats: *SPECIFIC GAS CONSTANT'
43  write(*,*) ' should be preceded by a *MATERIAL card'
44  call exit(201)
45  endif
46 !
47  do i=2,n
48  write(*,*)
49  & '*WARNING in specificgasconstants: parameter not recognized:'
50  write(*,*) ' ',
51  & textpart(i)(1:index(textpart(i),' ')-1)
52  call inputwarning(inpc,ipoinpc,iline,
53  &"*SPECIFIC GAS CONSTANT%")
54  enddo
55 !
56  do
57  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
58  & ipoinp,inp,ipoinpc)
59  if((istat.lt.0).or.(key.eq.1)) return
60  read(textpart(1)(1:20),'(f20.0)',iostat=istat)
61  & shcon(3,1,nmat)
62  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
63  &"*SPECIFIC GAS CONSTANT%")
64  enddo
65 !
66  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)