28 character*132 textpart(16)
30 integer nelcon(2,*),imat,ntmat_,istep,istat,ipoinpc(0:*),
31 & n,key,i,ncmat_,irstrt,iline,ipol,inl,ipoinp(2,*),inp(3,*),
34 real*8 elcon(0:ncmat_,ntmat_,*)
36 if((istep.gt.0).and.(irstrt.ge.0))
then 37 write(*,*)
'*ERROR reading *GAP HEAT GENERATION:' 38 write(*,*)
' *GAP HEAT GENERATION should be placed' 39 write(*,*)
' before all step definitions' 44 write(*,*)
'*ERROR reading *GAP HEAT GENERATION:' 45 write(*,*)
' *GAP HEAT GENERATION should be preceded' 46 write(*,*)
' by a *SURFACE INTERACTION card' 50 nstate_=
max(nstate_,9)
52 if(nelcon(1,imat).ne.-51) nelcon(1,imat)=
max(nelcon(1,imat),11)
58 call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
60 if((istat.lt.0).or.(key.eq.1))
return 62 read(textpart(i)(1:20),
'(f20.0)',iostat=istat)
64 if(istat.gt.0)
call inputerror(inpc,ipoinpc,iline,
65 &
"*GAP HEAT GENERATION%")
67 if(elcon(9,1,imat).le.0.d0)
then 69 &
'*ERROR reading *GAP HEAT GENERATION: fraction of' 70 write(*,*)
' dissipated energy converted into heat' 71 write(*,*)
' must be strictly positive' 73 &
"*GAP HEAT GENERATION%")
76 if((elcon(10,1,imat).lt.0.d0).or.
77 & (elcon(10,1,imat).gt.1.d0))
then 79 &
'*ERROR reading *GAP HEAT GENERATION: weighting factor' 80 write(*,*)
' for the distribution of heat between' 81 write(*,*)
' the slave and master surface must ' 82 write(*,*)
' be contained in [0,1]' 84 &
"*GAP HEAT GENERATION%")
#define max(a, b)
Definition: cascade.c:32
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21