Callback function or similar method to update simulation data before rendering images #1637
Unanswered
benjaminjeliot
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
@benjaminjeliot do you need a partial update for the trigger, and then a full update to render? You can register callbacks that call your own custom code: https://github.com/Alpine-DAV/ascent/blob/develop/src/tests/ascent/t_ascent_commands.cpp With this, you could create a callback, that is invoked by a trigger. Then the call does the full publish to another ascent instance and executes full rendering. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Is there a way I can use a callback or similar, to update simulation data before rendering images?
I am using Ascent with a simulation which has a relatively-expensive data-update method that I call before publishing the data to Ascent. This data-update method is only needed if I am going to be rendering images, otherwise it is wasted effort. When using
ascent_actions.yamlfile with triggers, I may end up with many timesteps where I don't need to render any simulation data.Is there a way that I can call a "data_update" method only when needed, through a callback or similar mechanism? Ideally only when the trigger condition is met.
Many thanks,
Jim
Beta Was this translation helpful? Give feedback.
All reactions