RST_DECK:(1)

πŸ“¦
version 2025.10 Β· 4 versions
, in ubuntu questing, ubuntu resolute, ubuntu stonking

✨ rst_deck ✨

okay bestie, welcome to section 1 of the User Commands manual β€” this is the page for rst_deck, and it's literally the glow-up your simulation deck has been waiting for. grab a strawberry drink πŸ“, we're converting decks.


🌸 NAME 🌸

rst_deck β€” Convert simulation deck to a deck ready for restart. that's the whole job. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

rst_deck [OPTIONS] ECL_DECK_FILENAME RESTART_SOURCE
[BASENAME_RESTART_DECK]

πŸ‘‘ DESCRIPTION πŸ‘‘

so like, the rst_deck program loads a simulation deck plus the parameters for a restart, and reformats the whole thing so it becomes a restart deck. before it writes the updated deck out, it updates the SOLUTION and SCHEDULE sections. here's the tea:

  • Every keyword from the SOLUTION section gets cleared out(1), and a RESTART keyword gets inserted. iconic behaviour.
  • In the SCHEDULE section, the program has two moods: it can either remove all keywords up until the restart date, or it can insert SKIPREST immediately following the SCHEDULE keyword.

When it's building the updated restart deck, it can either link to unmodified include files with INCLUDE statements, create a copy of the deck structure in an alternative location, or create one large file with all keywords in the same file. Apart from the alterations to support restart, the output deck is equivalent to the input deck β€” but formatting is not retained and comments have been stripped away. so if you were emotionally attached to your comments… they're gone, bestie. πŸ’€

πŸŽ€ the arguments, one by one πŸŽ€

  1. The data file we are starting with. (the deck you already have, yes, that one.)
  2. The restart source. this can either be a basename with an optional path prefix and a :N to restart from step N; alternatively you can point to an existing restart file. If you point to an existing restart file the input will be validated in several ways:
    • a) Unified/multiple files will be checked against the UNIFIN setting of the deck.
    • b) Formatted/unformatted will be checked against the FMTIn setting of the deck.
    • c) If a single file like /path/to/case/HISTORY.X0067 is given as argument the :N notation to denote report step should not be used.

If the restart argument is given as the path to an existing file, the content of the RESTART keyword will be updated to contain the correct path from the location of the restart deck to the location of the restart file. and ngl, this path awareness will be fooled if the restart deck is redirected from stdout to a path different from cwd. πŸ™ˆ

If the restart argument is given as an absolute filename the RESTART keyword will have an absolute path; if the restart argument is a relative path the RESTART keyword will get a relative path β€” although an absolute path will be used if the restart file and the output deck have different roots. If the restart argument is given as a string not pointing to an existing file it will be inserted verbatim in the restart deck.

A restart step value of 0 is interpreted as a dry run β€” a deck which has not been set up for restart will be written out.
  1. Basename of the restart deck we create, which can optionally contain a path prefix; the path will be created if it does not already exist. This argument is optional β€” if it is not provided the program will dump a restart deck on stdout. If the argument corresponds to an existing directory the restart case will get the same name as the base case. cute, right? 🫢

πŸ’– OPTIONS πŸ’–

  • -s β€” Manipulate the SCHEDULE section by inserting a SKIPREST keyword immediately following the SCHEDULE keyword. If the -s option is not used, the SCHEDULE section will be modified by removing all keywords until we reach the restart date.
  • -m β€” [share|inline|copy]. The restart deck can reuse the unmodified include files from the base case β€” this is mode 'share', and it's the default. With mode 'inline' the restart deck will be one long file, and with mode 'copy' the file structure of the base case will be retained. The default if no -m option is given is the 'share' mode.

In the case of 'share' and 'copy' the correct path to include files will be negotiated based on the path given to the output case in the third argument. If the restart deck is passed to stdout the include files will be resolved based on output in cwd.


🌈 EXAMPLE 🌈

rst_deck /path/to/history/HISTORY.DATA rst/HISTORY:30
/path/to/rst/RESTART -s

πŸ“Ž the footnote, aka (1) πŸ“Ž

  • 1: The program has a compiled list of keywords which will be retained in the SOLUTION section. The current value of that list is: RPTRST

and that's the whole page, bestie β€” this is rst_deck, dated April 2025, from the RST_DECK:(1) page itself. go forth and restart something. πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from