28 character*132 textpart(16)
30 integer ncocon(2,*),nmat,ntmat,ntmat_,istep,istat,n,
32 & i,ityp,key,irstrt,iline,ipol,inl,ipoinp(2,*),inp(3,*)
34 real*8 cocon(0:6,ntmat_,*)
38 if((istep.gt.0).and.(irstrt.ge.0))
then 39 write(*,*)
'*ERROR in conductivities: *CONDUCTIVITY should be' 40 write(*,*)
' placed before all step definitions' 45 write(*,*)
'*ERROR in conductivities: *CONDUCTIVITY should be' 46 write(*,*)
' preceded by a *MATERIAL card' 53 if(textpart(i)(1:5).eq.
'TYPE=')
then 54 if(textpart(i)(6:8).eq.
'ISO')
then 56 elseif(textpart(i)(6:10).eq.
'ORTHO')
then 58 elseif(textpart(i)(6:10).eq.
'ANISO')
then 63 &
'*WARNING in conductivities: parameter not recognized:' 65 & textpart(i)(1:index(textpart(i),
' ')-1)
75 call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
77 if((istat.lt.0).or.(key.eq.1))
return 80 if(ntmat.gt.ntmat_)
then 81 write(*,*)
'*ERROR in conductivities: increase ntmat_' 85 read(textpart(i)(1:20),
'(f20.0)',iostat=istat)
87 if(istat.gt.0)
call inputerror(inpc,ipoinpc,iline,
90 read(textpart(2)(1:20),
'(f20.0)',iostat=istat)
92 if(istat.gt.0)
call inputerror(inpc,ipoinpc,iline,
95 elseif(ityp.eq.3)
then 97 call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
99 if((istat.lt.0).or.(key.eq.1))
return 102 if(ntmat.gt.ntmat_)
then 103 write(*,*)
'*ERROR in conductivities: increase ntmat_' 107 read(textpart(i)(1:20),
'(f20.0)',iostat=istat)
108 & cocon(i,ntmat,nmat)
109 if(istat.gt.0)
call inputerror(inpc,ipoinpc,iline,
112 read(textpart(4)(1:20),
'(f20.0)',iostat=istat)
113 & cocon(0,ntmat,nmat)
114 if(istat.gt.0)
call inputerror(inpc,ipoinpc,iline,
117 elseif(ityp.eq.6)
then 119 call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
120 & ipoinp,inp,ipoinpc)
121 if((istat.lt.0).or.(key.eq.1))
return 124 if(ntmat.gt.ntmat_)
then 125 write(*,*)
'*ERROR in conductivities: increase ntmat_' 129 read(textpart(i)(1:20),
'(f20.0)',iostat=istat)
130 & cocon(i,ntmat,nmat)
131 if(istat.gt.0)
call inputerror(inpc,ipoinpc,iline,
134 read(textpart(7)(1:20),
'(f20.0)',iostat=istat)
135 & cocon(0,ntmat,nmat)
136 if(istat.gt.0)
call inputerror(inpc,ipoinpc,iline,
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21