diff --git a/src/coreComponents/fileIO/python/PyHistoryCollection.cpp b/src/coreComponents/fileIO/python/PyHistoryCollection.cpp index 5f65e62966a..7bd2a08ea4d 100644 --- a/src/coreComponents/fileIO/python/PyHistoryCollection.cpp +++ b/src/coreComponents/fileIO/python/PyHistoryCollection.cpp @@ -90,15 +90,15 @@ static PyObject * collect( PyHistoryCollection * self, PyObject * args ) double time; double dt; + int cycleNumber; - if( !PyArg_ParseTuple( args, "dd", &time, &dt ) ) + if( !PyArg_ParseTuple( args, "ddi", &time, &dt, &cycleNumber ) ) { return nullptr; } geos::DomainPartition & domain = self->group->getGroupByPath< DomainPartition >( "/Problem/domain" ); - int cycleNumber = int(round( time/dt )); try { self->group->execute( time, dt, cycleNumber, 0, 0, domain ); diff --git a/src/coreComponents/fileIO/python/PyHistoryOutput.cpp b/src/coreComponents/fileIO/python/PyHistoryOutput.cpp index 5da919b192a..e7fff852ef5 100644 --- a/src/coreComponents/fileIO/python/PyHistoryOutput.cpp +++ b/src/coreComponents/fileIO/python/PyHistoryOutput.cpp @@ -88,15 +88,15 @@ static PyObject * output( PyHistoryOutput * self, PyObject * args ) double time; double dt; + int cycleNumber; - if( !PyArg_ParseTuple( args, "dd", &time, &dt ) ) + if( !PyArg_ParseTuple( args, "ddi", &time, &dt, &cycleNumber ) ) { return nullptr; } geos::DomainPartition & domain = self->group->getGroupByPath< DomainPartition >( "/Problem/domain" ); - int cycleNumber = int(round( time/dt )); try { self->group->cleanup( time, cycleNumber, 0, 0, domain ); diff --git a/src/coreComponents/fileIO/python/PyVTKOutput.cpp b/src/coreComponents/fileIO/python/PyVTKOutput.cpp index 496fe116348..89cc2c4026f 100644 --- a/src/coreComponents/fileIO/python/PyVTKOutput.cpp +++ b/src/coreComponents/fileIO/python/PyVTKOutput.cpp @@ -86,15 +86,15 @@ static PyObject * output( PyVTKOutput * self, PyObject * args ) double time; double dt; + int cycleNumber; - if( !PyArg_ParseTuple( args, "dd", &time, &dt ) ) + if( !PyArg_ParseTuple( args, "ddi", &time, &dt, &cycleNumber ) ) { return nullptr; } geos::DomainPartition & domain = self->group->getGroupByPath< DomainPartition >( "/Problem/domain" ); - int cycleNumber = int(round( time/dt )); try { self->group->execute( time, dt, cycleNumber, 0, 0, domain ); diff --git a/src/coreComponents/physicsSolvers/python/PySolver.cpp b/src/coreComponents/physicsSolvers/python/PySolver.cpp index befc482dc15..d8c7ada2ae2 100644 --- a/src/coreComponents/physicsSolvers/python/PySolver.cpp +++ b/src/coreComponents/physicsSolvers/python/PySolver.cpp @@ -85,15 +85,15 @@ static PyObject * execute( PySolver * self, PyObject * args ) double time; double dt; - if( !PyArg_ParseTuple( args, "dd", &time, &dt ) ) + int cycleNumber; + + if( !PyArg_ParseTuple( args, "ddi", &time, &dt, &cycleNumber ) ) { return nullptr; } geos::DomainPartition & domain = self->group->getGroupByPath< DomainPartition >( "/Problem/domain" ); - int cycleNumber = int(round( time/dt )); - self->group->execute( time, dt, cycleNumber, 0, 0, domain ); Py_RETURN_NONE;