feat: Receive cycleNumber for Python bindings in output/execute/collect calls#3631
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3631 +/- ##
========================================
Coverage 56.66% 56.66%
========================================
Files 1217 1217
Lines 105126 105126
========================================
Hits 59567 59567
Misses 45559 45559 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hello Alexander, is it possible to have a check for cycleNumber? To make sure it has been parsed? That would avoid obliging us to modify all previous python codes. Thanks. |
Dear @Victor-M-Gomes, thanks for checking!
I do not mind if you insist, but it is not a big change to support and |
I see. Nevermind then. When the time comes we will make the necessary changes on our side. |
…ct calls (#3631) * Receive cycleNumber from Python in output/execute/collect calls
cycleNumber is required for execute/output/collect calls in PyHistoryCollection.cpp, PyHistoryOutput.cpp, PyVTKOutput.cpp and PySolver.cpp. Currently, it is not passed from Python, but awkwardly calculated as
int cycleNumber = int(round( time/dt ));which result in, for example, wrong indexation of VTK snapshots in case of dynamically changing timestep.This PR support receiving of
cycleNumberfrom Python in affected C++ calls.Goes with geosPythonPackages: PR89.