11integer natmtot_,npmtmax_,ngtot_
19open(100,file=
'RHOSTAT.OUT',form=
'UNFORMATTED',action=
'READ',status=
'OLD', &
23 write(*,
'("Error(readrhos): error opening RHOSTAT.OUT")')
30 write(*,
'("Error(readrhos): differing natmtot")')
31 write(*,
'(" current : ",I6)')
natmtot
32 write(*,
'(" RHOSTAT.OUT : ",I6)') natmtot_
39 write(*,
'("Error(readrhos): differing npmtmax")')
40 write(*,
'(" current : ",I6)')
npmtmax
41 write(*,
'(" RHOSTAT.OUT : ",I6)') npmtmax_
46if (
ngtot /= ngtot_)
then
48 write(*,
'("Error(readrhos): differing ngtot")')
49 write(*,
'(" current : ",I8)')
ngtot
50 write(*,
'(" RHOSTAT.OUT : ",I8)') ngtot_
real(8), dimension(:,:,:), allocatable rhosmt
real(8), dimension(:,:), allocatable chgsmt
real(8), dimension(:,:), allocatable rhosir
real(8), dimension(3) chgstot