Hi,
I happen to need this recently.
Basically, you can read the output files one by one from a list and do whatever you want.
The subroutine is from others and I simply modify it to meet my need.
include 'mypost.f'
1. Put your files into a list
cat a.list
cyl0.f00001
cyl0.f00002
...
cyl0.f01000
2. In userchk, call the interface subroutine (mypost.f/post_reader) to read that list
character*127 fname
fname='a.list ' ! space for end character ?
call post_reader(fname) ! read all file in the a.list one by one
call exitt0
It will go through all file in the list, open it one by one and execute the following work subroutine
3. Edit the "post_reader_work" subroutine (put it in user file) to do post-processing
In my case, I want to save them into uniform grid.
subroutine post_reader_work(ifile) ! do stuff after open a file
implicit none
include 'SIZE'
include 'TOTAL'
integer ifile
ifreguo = .true.
ifxyo = .true.
call outpost(vx,vy,vz,pr,t,'unf')
if(nio.eq.0) write(*,*) 'file',ifile,' ... done!'
return
end
You can call lambda2(t) there and manipulate istep (=0 since it's called at the first userchk) and time (read from file) based on the variable "ifile" so call hpts() will dump them into your .his file directly.
Hope this helps,
Yu-Hsiang
--