Skip to content

How to store the maximum value in each cell at all moments during the calculation? #4209

Answered by zingale
MaybeBin asked this question in Q&A
Discussion options

You must be logged in to vote

I would go about this by making an additional StateData with just a single time-level and single component, and then at the end of the evolution loop, do the max of the current pressure and what's stored there. This way you can have it stored in the checkpoint for you, so it restarts.

(Also, fun bit -- we did cell dets ~ 20 years ago, but I made that plot from the plotfiles back then: https://iopscience.iop.org/article/10.1086/317135)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@MaybeBin
Comment options

Answer selected by MaybeBin
Comment options

You must be logged in to vote
3 replies
@himcraft
Comment options

@zingale
Comment options

@himcraft
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants