From 86957ab86e822262cce3bcb81f6c3e3cbaf907e6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 11 Jan 2023 15:05:33 +0100 Subject: Add documentation --- README | 23 +++++++++++++++++++++++ param.ccl | 8 ++++---- 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..ac30c17 --- /dev/null +++ b/README @@ -0,0 +1,23 @@ +This thorn loads stored simulation output to set initial data. + +The implementation is very simple - it invokes an external executable (specified +by the 'load_data_exe' parameter) and reads the values from its stdout. See the +popen() call in src/revive.c for arguments passed to the binary. The +implementation this was developed with is [1], but any other executable that +behaves in a compatible way should work. + +Example use: +ActiveThorns = "ADMBase ReviveData" + +ADMBase::initial_data = "revivedata" +ADMBase::initial_lapse = "revivedata" +ADMBase::initial_dtlapse = "zero" +ADMBase::initial_shift = "revivedata" +ADMBase::initial_dtshift = "zero" + +ReviveData::load_data_exe = "<...>/revive.py" +ReviveData::simdata_path = "