From 22dff230436db02408566b8c6ae8f5182b7002b5 Mon Sep 17 00:00:00 2001 From: Deepak Rangarajan Date: Wed, 7 Sep 2022 14:40:47 +0000 Subject: [PATCH 1/3] documenation update to support EB checkpoint files --- docs/source/inputs/InputsCheckpoint.rst | 33 +++++++++++-------- .../source/inputs/InputsProblemDefinition.rst | 2 ++ 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/docs/source/inputs/InputsCheckpoint.rst b/docs/source/inputs/InputsCheckpoint.rst index e6c08cb..cdef4f6 100644 --- a/docs/source/inputs/InputsCheckpoint.rst +++ b/docs/source/inputs/InputsCheckpoint.rst @@ -5,17 +5,22 @@ Checkpoint/Restart The following inputs must be preceded by "amr" and control checkpoint/restart. -+------------------+-----------------------------------------------------------------------+-------------+-----------+ -| | Description | Type | Default | -+==================+=======================================================================+=============+===========+ -| restart | If present, then the name of file to restart from | String | None | -+------------------+-----------------------------------------------------------------------+-------------+-----------+ -| check_int | Frequency of checkpoint output; | Int | -1 | -| | if -1 then no checkpoints will be written | | | -+------------------+-----------------------------------------------------------------------+-------------+-----------+ -| check_file | Prefix to use for checkpoint output | String | chk | -+------------------+-----------------------------------------------------------------------+-------------+-----------+ -| check_walltime | Write a check point file after the specified walltime (HH:MM:SS) | String | None | -| | has lapsed. For example, if amr.check_waltime = 00:10:00, then a | | | -| | checkpoint file is after a job has run for ten minutes. | | | -+------------------+-----------------------------------------------------------------------+-------------+-----------+ ++-------------------------+-----------------------------------------------------------------------+-------------+-----------+ +| | Description | Type | Default | ++=========================+=======================================================================+=============+===========+ +| restart | If present, then the name of file to restart from | String | None | ++-------------------------+-----------------------------------------------------------------------+-------------+-----------+ +| check_int | Frequency of checkpoint output; | Int | -1 | +| | if -1 then no checkpoints will be written | | | ++-------------------------+-----------------------------------------------------------------------+-------------+-----------+ +| check_file | Prefix to use for checkpoint output | String | chk | ++-------------------------+-----------------------------------------------------------------------+-------------+-----------+ +| check_walltime | Write a check point file after the specified walltime (HH:MM:SS) | String | None | +| | has lapsed. For example, if amr.check_waltime = 00:10:00, then a | | | +| | checkpoint file is after a job has run for ten minutes. | | | ++-------------------------+-----------------------------------------------------------------------+-------------+-----------+ +| write_geom_chk | When True, writes the EB geometry data into a checkpoint file. | bool | False | ++-------------------------+-----------------------------------------------------------------------+-------------+-----------+ +| use_geom_chk_if_present | When True, looks for the EB geometry checkpoint file in the | bool | True | +| | current direcotry and uses it, overriding any EB geometry in inputs | | | ++-------------------------+-----------------------------------------------------------------------+-------------+-----------+ diff --git a/docs/source/inputs/InputsProblemDefinition.rst b/docs/source/inputs/InputsProblemDefinition.rst index bdcd848..abbbf98 100644 --- a/docs/source/inputs/InputsProblemDefinition.rst +++ b/docs/source/inputs/InputsProblemDefinition.rst @@ -103,6 +103,8 @@ The following inputs must be preceded by "mfix." +========================+===================================================================+==========+=====================+ | geometry | Which type of EB geometry are we using? | String | | +------------------------+-------------------------------------------------------------------+----------+---------------------+ +| geometry_filename | The CSG file that defines the EB geometry | String | | ++------------------------+-------------------------------------------------------------------+----------+---------------------+ | levelset__refinement | Refinement factor of levelset resolution relative to level 0 | Int | 1 | | | resolution | | | +------------------------+-------------------------------------------------------------------+----------+---------------------+ -- GitLab From ccb16d52f0f155f213e5e0812d59e212d87cd1f7 Mon Sep 17 00:00:00 2001 From: Deepak Rangarajan Date: Wed, 7 Sep 2022 16:19:20 +0000 Subject: [PATCH 2/3] typo --- docs/source/inputs/InputsCheckpoint.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/inputs/InputsCheckpoint.rst b/docs/source/inputs/InputsCheckpoint.rst index cdef4f6..8148ae2 100644 --- a/docs/source/inputs/InputsCheckpoint.rst +++ b/docs/source/inputs/InputsCheckpoint.rst @@ -22,5 +22,5 @@ The following inputs must be preceded by "amr" and control checkpoint/restart. | write_geom_chk | When True, writes the EB geometry data into a checkpoint file. | bool | False | +-------------------------+-----------------------------------------------------------------------+-------------+-----------+ | use_geom_chk_if_present | When True, looks for the EB geometry checkpoint file in the | bool | True | -| | current direcotry and uses it, overriding any EB geometry in inputs | | | +| | current directory and uses it, overriding any EB geometry in inputs | | | +-------------------------+-----------------------------------------------------------------------+-------------+-----------+ -- GitLab From bf5587e9a302eca188712c6db398f5c33df3b5d9 Mon Sep 17 00:00:00 2001 From: Deepak Rangarajan Date: Fri, 9 Sep 2022 11:04:23 +0000 Subject: [PATCH 3/3] update eb checkpoint file options --- docs/source/inputs/InputsCheckpoint.rst | 3 --- docs/source/inputs/InputsProblemDefinition.rst | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/inputs/InputsCheckpoint.rst b/docs/source/inputs/InputsCheckpoint.rst index 8148ae2..b9ad705 100644 --- a/docs/source/inputs/InputsCheckpoint.rst +++ b/docs/source/inputs/InputsCheckpoint.rst @@ -21,6 +21,3 @@ The following inputs must be preceded by "amr" and control checkpoint/restart. +-------------------------+-----------------------------------------------------------------------+-------------+-----------+ | write_geom_chk | When True, writes the EB geometry data into a checkpoint file. | bool | False | +-------------------------+-----------------------------------------------------------------------+-------------+-----------+ -| use_geom_chk_if_present | When True, looks for the EB geometry checkpoint file in the | bool | True | -| | current directory and uses it, overriding any EB geometry in inputs | | | -+-------------------------+-----------------------------------------------------------------------+-------------+-----------+ diff --git a/docs/source/inputs/InputsProblemDefinition.rst b/docs/source/inputs/InputsProblemDefinition.rst index abbbf98..258f229 100644 --- a/docs/source/inputs/InputsProblemDefinition.rst +++ b/docs/source/inputs/InputsProblemDefinition.rst @@ -102,6 +102,9 @@ The following inputs must be preceded by "mfix." | | Description | Type | Default | +========================+===================================================================+==========+=====================+ | geometry | Which type of EB geometry are we using? | String | | +| | | | | +| | To use geometry from EB checkpoint file in current directory | | | +| | set value to "chkptfile" | | | +------------------------+-------------------------------------------------------------------+----------+---------------------+ | geometry_filename | The CSG file that defines the EB geometry | String | | +------------------------+-------------------------------------------------------------------+----------+---------------------+ -- GitLab