cape.pykes.options.archiveopts
: Kestrel archiving options¶
This module provides Kestrel-specific modifications to the base
archiving options module in archiveopts
. Default
options for which files to delete or tar are specific to each solver,
and thus a few modifications are necessary for each solver in order to
define good default values for archiving.
The following default values are copied from the source code of this module.
Default behavior for Kestrel case archiving is to copy several of the large files (such as mesh, solution, etc.) and create several tar balls. The default tar balls that are created within an archive folder are specified in two separate commands. For each dictionary, the name of the key is the name of the tar ball and the list on the right-hand side is a list of file globs that go into the tar. These are set or modified in the ArchivePostTarGroups setting of the archiving section.
# Tecplot files PltDict = [ ] # Base files RunDict = [ ]
Grid, solution, and post-processing files that are directly copied to the archive are set using the following code. This affects the ArchiveFiles setting.
# Flow files CopyFiles = [ ]
Further files to be deleted upon use of the --skeleton
command are defined
using the following code. This is the SkeletonFiles setting. Note that
SkeletonFiles are defined in reverse order; the user specifies the files to
keep, not delete.
# Files to keep SkeletonFiles = [ ]
- See also:
- class cape.pykes.options.archiveopts.ArchiveOpts(*args, **kw)¶
Archiving options for
cape.pykes
- Call:
>>> opts = Archive(**kw)
- Versions:
2015-09-28
@ddalle
: v1.02022-10-21
@ddalle
: v2.0; usecape.optdict
- apply_ArchiveTemplate()¶
Apply named template to set default files to delete/archive
- Call:
>>> opts.apply_ArchiveTemplate()
- Inputs:
- opts:
pyFun.options.Options
Options interface
- opts:
- Versions:
2023-03-20
@ddalle
: v0.0; no templates yet
- init_post()¶
Initialization hook for Kestrel archiving options
- Call:
>>> opts.init_post()
- Inputs:
- opts:
ArchiveOpts
Archiving options interface
- opts:
- Versions:
2022-10-21
@ddalle
: v1.0
- cape.pykes.options.archiveopts.auto_Archive(opts)¶
Ensure
ArchiveOpts
instance- Call:
>>> opts = auto_Archive(opts)
- Inputs:
- opts:
dict
Dict of either global, “RunControl” or “Archive” options
- opts:
- Outputs:
- opts:
ArchiveOpts
Instance of archiving options
- opts:
- Versions:
2016-02-29
@ddalle
: v1.02022-10-21
@ddalle
: v2.0; solver-agnostic template