Activate Interactive Mode
Table of contents
yt_run_InteractiveMode
int yt_run_InteractiveMode(const char* flag_file_name);
- Usage: Activate interactive Python prompt when file
flag_file_name is detected in the same directory where simulation executable is. - Return:
YT_SUCCESS -
YT_FAIL: When libyt is not compiled with -DINTERACTIVE_MODE, it returns YT_FAIL.
Must compile libyt with -DINTERACTIVE_MODE.
Example
#include "libyt.h"
...
if (yt_run_InteractiveMode("LIBYT_STOP") != YT_SUCCESS) {
fprintf(stderr, "ERROR: yt_run_InteractiveMode failed!\n");
exit(EXIT_FAILURE);
}