Hi Alexandre, I don't know if this is possible or not with Catalyst, hopefully somebody else comes along to answer that.
But, we did this in our code using signal handling and POSIX signals (see http://man7.org/linux/man-pages/man7/signal.7.html). We define 3 behaviors in our code -- reload the input file and change simulation behavior accordingly; create a restart file at the next available chance and keep running; create a restart file and exit immediately. We use SIGUSR1 and SIGUSR2 for the first two options and then we use SIGTERM for the last behavior. This is helpful because most queue systems on HPC clusters will send SIGTERM 60 seconds before your wall-time is about to run out, so catching that signal and using it to write a restart file and exit means we always get our data right before our job runs out of time. Signals can be sent locally using `kill` or can be sent through PBS using `qsig`. It works quite nicely. Tim ----- Original Message ----- From: "Alexandre Ancel" <[email protected]> To: "paraview" <[email protected]> Sent: Wednesday, December 2, 2015 11:47:59 AM Subject: [Paraview] Catalyst: simulation steering during In-Situ visualization Hello, We are currently using Catalyst for In-Situ visualization in the context of our finite element library and it is working very well. We would like to implement simulation steering while using Catalyst. The idea would consist in having a ParaView plugin that we load in the ParaView client. Within the code of this plugin, we would like to send data to the simulation code to modify its behavior. First question: Is it possible to do so ? Then, How would the whole process be run ? The ideal scenario would be the following: - Launch ParaView & connect to the distant pverver & enable Catalyst - Load the plugin in ParaView - Launch the simulation - Receive data until timestep N then stop the simulation - Send data to the simulation through the loaded plugin - Continue with the simulation Would it be possible to do so ? If yes, could you give me keypoints about how to do this ? Thanks in advance for your answers, Best regards, Alexandre Ancel -- Alexandre Ancel Docteur, Ingénieur de recherche / Phd, Research Engineer Ce mosis - [email protected] Tel: +33 (0)3 68 8 5 02 06 IRMA - 7, rue René Descartes 67 000 Strasbourg, France _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
