upgraded python to support gadget format type 2

This commit is contained in:
Guilhem Lavaux 2016-01-29 10:24:50 +01:00
parent f2e015b1fb
commit 450a9a4185
2 changed files with 10 additions and 10 deletions

View file

@ -3,11 +3,11 @@
#include <string>
static inline
CosmoTool::SimuData *loadGadgetMulti_safe(const std::string& fname, int flags)
CosmoTool::SimuData *loadGadgetMulti_safe(const std::string& fname, int flags, int gadgetFormat)
{
try
{
return CosmoTool::loadGadgetMulti(fname.c_str(), -1, flags);
return CosmoTool::loadGadgetMulti(fname.c_str(), -1, flags, gadgetFormat);
}
catch (const CosmoTool::Exception& e)
{