yt-project / libyt

In-situ analysis with yt
https://libyt.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Reload Script API and Other MISC Fix #100

Closed cindytsai closed 5 months ago

cindytsai commented 5 months ago

Reload Script API and Other MISC Fix

New API -- yt_run_ReloadScript

This new api needs -DINTERACTIVE_MODE=ON. It is a file-based interactive prompt, such that user creates specific file name to send instructions to libyt.

yt_run_ReloadScript(const char* flag_file_name, const char* reload_file_name, const char* script);
  1. Start reloading script when <flag_file_name> file is detected, or an error occurred when running inline functions.
  2. libyt starts reloading the script <script_name> if <reload_file_name> file is detected, and it exits the API if <reload_file_name>_EXIT file is detected.
  3. Outputs will be printed in <reload_file_name>_SUCCESS or <reload_file_name>_FAILED.

Enhancement

Change