-
Notifications
You must be signed in to change notification settings - Fork 199
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
Added support to use adios2's flatten_step #5634
base: development
Are you sure you want to change the base?
Conversation
To enable it, put it in the openPMD option through input file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, @guj !
I've left few comments, mainly to make clang-tidy
and CodeQL
happy.
Added braces for the if/else loop via Luca Fedeli Co-authored-by: Luca Fedeli <[email protected]>
added const to bool variable via Luca Fedeli Co-authored-by: Luca Fedeli <[email protected]>
eliminate extra space Co-authored-by: Luca Fedeli <[email protected]>
remove commented line via Luca Fedeli Co-authored-by: Luca Fedeli <[email protected]>
Remove commented line via Luca Fedeli Co-authored-by: Luca Fedeli <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -176,6 +176,7 @@ private: | |||
} | |||
} | |||
|
|||
void flushCurrent(bool isBTD) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to add a doc-string to document this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added doc for this function
Source/Diagnostics/WarpXOpenPMD.cpp
Outdated
void WarpXOpenPMDPlot::flushCurrent(bool isBTD) const | ||
{ | ||
WARPX_PROFILE("WarpXOpenPMDPlot::flushCurrent"); | ||
// open files from all processors, in case some will not contribute below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments can be adapted to write a doc-string for the function declaration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added documentation for this function.
typo spotted by Luca Fedeli Co-authored-by: Luca Fedeli <[email protected]>
To enable it, put it in the openPMD option through input file:
e.g.
This feature is useful for BTD use case. Data can be flushed after each buffered writes of a snapshot
To check weather this feature is in use, try "bpls -V your_bp_file_name"