diff --git a/plugins/output_gadget2.cc b/plugins/output_gadget2.cc index e9bbbd7..54c2122 100644 --- a/plugins/output_gadget2.cc +++ b/plugins/output_gadget2.cc @@ -15,13 +15,15 @@ #include "mg_interp.hh" #include "mesh.hh" +const int empty_fill_bytes = 60; + template< typename T_store=float > class gadget2_output_plugin : public output_plugin { public: - bool do_baryons_; - double omegab_; - double gamma_; + bool do_baryons_; + double omegab_; + double gamma_; protected: @@ -48,7 +50,7 @@ protected: int flag_metals; unsigned int npartTotalHighWord[6]; int flag_entropy_instead_u; - char fill[60]; + char fill[empty_fill_bytes]; }header; @@ -839,6 +841,8 @@ public: header_.BoxSize *= 1000.0; + for( int i=0; i