29 subroutine write_fileout_pg(monitor_file,file_name,proc,nv,vec,nvec)
31 character*70 :: file_name,monitor_file
32 character*70 :: out_file, out_file_new
34 integer*4 :: proc,nv,count,nvec
38 real*8,
dimension(nv,nvec) :: vec
41 lname = len_trim(file_name)
42 out_file = file_name(1:lname) //
'_000_00000.MAP'
45 write(out_file(lname+4:lname+4),
'(i1)')count
46 else if (count.le.99)
then
47 write(out_file(lname+3:lname+4),
'(i2)')count
48 else if (count.le.999)
then
49 write(out_file(lname+2:lname+4),
'(i3)')count
53 write(out_file(lname+10:lname+10),
'(i1)')proc
54 else if (proc.le.99)
then
55 write(out_file(lname+9:lname+10),
'(i2)')proc
56 else if (proc.le.999)
then
57 write(out_file(lname+8:lname+10),
'(i3)')proc
58 else if (proc.le.9999)
then
59 write(out_file(lname+7:lname+10),
'(i4)')proc
60 else if (proc.le.99999)
then
61 write(out_file(lname+6:lname+10),
'(i5)')proc
64 if(len_trim(monitor_file) .ne. 70)
then
65 out_file_new = monitor_file(1:len_trim(monitor_file)) //
'/'
67 out_file_new = out_file
71 open(20,file=out_file_new,form=
'formatted')
75 write(20,
'(1E14.8,1X,1E14.8,1X,1E14.8,1X,1E14.8,1X,1E14.8,1X,1E14.8,1X,1E14.8,1X,1E14.8,1X,1E14.8)'
76 vec(i,1),vec(i,2),vec(i,3),vec(i,4),vec(i
77 vec(i,6),vec(i,7),vec(i,8),vec(i,9)
81 write(20,
'(1E14.8,1X,1E14.8,1X,1E14.8)') vec(i,1
89 end subroutine write_fileout_pg