-
Notifications
You must be signed in to change notification settings - Fork 94
feat: Receive cycleNumber for Python bindings in output/execute/collect calls #3631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
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. |
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
cycleNumber
from Python in affected C++ calls.Goes with geosPythonPackages: PR89.