28       character*132 textpart(16)
    30       integer nelcon(2,*),nmat,ntmat,ntmat_,istep,istat,ipoinpc(0:*),
    31      &  n,key,i,ityp,ncmat_,irstrt,iline,ipol,inl,ipoinp(2,*),inp(3,*),
    34       real*8 elcon(0:ncmat_,ntmat_,*)
    38       if((istep.gt.0).and.(irstrt.ge.0)) 
then    39          write(*,*) 
'*ERROR reading *MAGNETIC PERMEABILITY:'    40          write(*,*) 
'       *MAGNETIC PERMEABILITY should be placed'    41          write(*,*) 
'        before all step definitions'    46          write(*,*) 
'*ERROR reading *MAGNETIC PERMEABILITY:'    47          write(*,*) 
'       *MAGNETIC PERMEABILITY should be preceded'    48          write(*,*) 
'       by a *MATERIAL card'    55          if(textpart(i)(1:5).eq.
'TYPE=') 
then    56             if(textpart(i)(6:8).eq.
'ISO') 
then    61             write(*,*) 
'*WARNING reading *MAGNETIC PERMEABILITY:'    62             write(*,*) 
'         parameter not recognized:'    64      &                 textpart(i)(1:index(textpart(i),
' ')-1)
    66      &
"*MAGNETIC PERMEABILITY%")
    74             call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
    76             if((istat.lt.0).or.(key.eq.1)) 
return    79             if(ntmat.gt.ntmat_) 
then    80                write(*,*) 
'*ERROR reading *MAGNETIC PERMEABILITY:'    81                write(*,*) 
'       increase ntmat_'    85             read(textpart(1)(1:20),
'(f20.0)',iostat=istat)
    87             if(istat.gt.0) 
call inputerror(inpc,ipoinpc,iline,
    88      &
"*MAGNETIC PERMEABILITY%")
    90             read(textpart(2)(1:10),
'(i10)',iostat=istat) idomain
    91             if(istat.gt.0) 
call inputerror(inpc,ipoinpc,iline,
    92      &
"*MAGNETIC PERMEABILITY%")
    93             elcon(2,ntmat,nmat)=idomain+0.5d0
    95             if(textpart(3)(1:1).ne.
' ') 
then    96                read(textpart(3)(1:20),
'(f20.0)',iostat=istat)
    98                if(istat.gt.0) 
call inputerror(inpc,ipoinpc,iline,
    99      &
"*MAGNETIC PERMEABILITY%")
   101                elcon(0,ntmat,nmat)=0.d0
   105          write(*,*) 
'*ERROR reading *MAGNETIC PERMEABILITY:'   106          write(*,*) 
'       no anisotropy allowed'   110       if(ntmat.eq.0) nelcon(1,nmat)=0
 
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21