[Users] HDF5 3D output separate time files
Roland Haas
roland.haas at physics.gatech.edu
Thu Jun 22 13:38:51 CDT 2017
Hello Hayley,
> Is there another way to separate my 3D HDF5 output into one file per
> snapshot?
One file per snapshot with output from all processors is likely not
(easily) possible. Similarly there is currently no code in CarpetIOHDF5
for creating a new file every N output cycles.
> Any help anyone can offer would be much appreciated!
You'd have to edit
repos/carpet/CarpetIOHDF5/src/OutputSlice.cc
(for out3d_vars output). Simplest would be to edit the basefilename
that you can see in line 441:
ostringstream basefilenamebuf;
basefilenamebuf << my_out_slice_dir << "/" << alias;
const string basefilename = basefilenamebuf.str();
as long as you choose a new filename, everything should be fine.
Something like (untested!):
basefilenamebuf << ".it_" << cctk_iteration
should do the trick (one file per iteration and with the obvious
changes for multiple iterations per file).
Yours,
Roland
--
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20170622/35ba9f06/attachment.bin
More information about the Users
mailing list