11integer ios,ntimes_,its,its_
16open(50,file=
'AFIELDT.OUT',form=
'FORMATTED',action=
'READ',status=
'OLD', &
20 write(*,
'("Error(readafieldt): error opening AFIELDT.OUT")')
27 write(*,
'("Error(readafieldt): ntimes < 1 : ",I8)') ntimes_
35 read(50,*) its_,times_,
afieldt(:,its)
38 write(*,
'("Error(readafieldt): time step number mismatch")')
39 write(*,
'(" internal : ",I8)') its
40 write(*,
'(" AFIELDT.OUT : ",I8)') its_
44 t1=abs(
times(its)-times_)
47 write(*,
'("Error(readafieldt): time step mismatch for step number ",&
49 write(*,
'(" internal : ",G18.10)')
times(its)
50 write(*,
'(" AFIELDT.OUT : ",G18.10)') times_
56open(50,file=
'AFSPT.OUT',form=
'FORMATTED',action=
'READ',status=
'OLD',iostat=ios)
59 write(*,
'("Error(readafieldt): error opening AFSPT.OUT")')
66 write(*,
'("Error(readafieldt): differing ntimes")')
67 write(*,
'(" internal : ",I8)')
ntimes
68 write(*,
'(" AFSPT.OUT : ",I8)') ntimes_
75 read(50,*) its_,times_,
afspt(:,:,its)
78 write(*,
'("Error(readafieldt): time step number mismatch")')
79 write(*,
'(" internal : ",I8)') its
80 write(*,
'(" AFSPT.OUT : ",I8)') its_
84 t1=abs(
times(its)-times_)
87 write(*,
'("Error(readafieldt): time step mismatch for step number ",&
89 write(*,
'(" internal : ",G18.10)')
times(its)
90 write(*,
'(" AFSPT.OUT : ",G18.10)') times_
real(8), dimension(:), allocatable times
real(8), dimension(:,:), allocatable afieldt
real(8), dimension(:,:,:), allocatable afspt