diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-08-24 12:04:51 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:21:12 +0000 |
commit | a62e8ee3f1e86100cda633f51c22ee063e28df76 (patch) | |
tree | 96c4522bba984cfb4a1e53ce75733d6cdbf08c01 /CarpetDev/CarpetIOF5_standalone/src/writer.hh | |
parent | eb813afcef1be0aba7154fe41d21e4a7657371ad (diff) |
CarpetIOF5: Rename old thorn
Diffstat (limited to 'CarpetDev/CarpetIOF5_standalone/src/writer.hh')
-rw-r--r-- | CarpetDev/CarpetIOF5_standalone/src/writer.hh | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5_standalone/src/writer.hh b/CarpetDev/CarpetIOF5_standalone/src/writer.hh new file mode 100644 index 000000000..d3a6611aa --- /dev/null +++ b/CarpetDev/CarpetIOF5_standalone/src/writer.hh @@ -0,0 +1,70 @@ +#ifndef WRITER_HH +#define WRITER_HH + +#include "cctk.h" + +#include "bbox.hh" +#include "defs.hh" +#include "dh.hh" +#include "vect.hh" + +#include "file.hh" +#include "physical_quantity.hh" +#include "simulation.hh" +#include "timestep.hh" +#include "topology.hh" + + + +namespace CarpetIOF5 { + + class writer_t { + + cGH const * const m_cctkGH; + int const m_variable; + + public: + + writer_t (cGH const * cctkGH, + int variable); + + void + write (F5::file_t & file) + const; + + private: + + void + write_meta (F5::file_t & file) + const; + + void + write_one_mglevel (F5::timestep_t & timestep) + const; + + void + write_global (F5::timestep_t & timestep) + const; + + void + write_one_reflevel (F5::timestep_t & timestep) + const; + + void + write_one_map (F5::timestep_t & timestep) + const; + + void + write_one_component (F5::physical_quantity_t & physical_quantity) + const; + + + + static bbox<int,dim> const & + determine_region (dh::light_dboxes const & light_boxes); + + }; + +} // namespace CarpetIOF5 + +#endif // #ifndef WRITER_HH |