Removed spurious prints. Do better CosmoTool exception translation
This commit is contained in:
parent
22aa572370
commit
1fe8f58105
5 changed files with 63 additions and 7 deletions
|
@ -44,9 +44,11 @@ cdef extern from "safe_gadget.hpp":
|
|||
SimuData **alloc_simudata(int num) nogil
|
||||
void del_simudata(SimuData **d) nogil
|
||||
|
||||
cdef extern from "loadRamses.hpp" namespace "CosmoTool":
|
||||
SimuData *loadRamsesSimu(const char *basename, int id, int cpuid, bool dp, int flags) except +
|
||||
cdef extern from "cppHelper.hpp":
|
||||
int customCosmotoolHandler() nogil
|
||||
|
||||
cdef extern from "loadRamses.hpp" namespace "CosmoTool":
|
||||
SimuData *loadRamsesSimu(const char *basename, int id, int cpuid, bool dp, int flags) except +customCosmotoolHandler
|
||||
|
||||
class PySimulationBase(object):
|
||||
"""
|
||||
|
@ -226,7 +228,6 @@ cdef class Simulation:
|
|||
|
||||
def __dealloc__(Simulation self):
|
||||
if self.data != <SimuData *>0:
|
||||
print("Clearing simulation data")
|
||||
del self.data
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue