Wiki

Clone wiki

pflotran / Depreciated / Documentation / QuickGuide / ExternalFile

Back to Quick Guide

EXTERNAL_FILE Card

This card allows the user to break up an input file into separate file with unlimited flexibility on how one desires to break up the ASCII input. External files can be nested up to 9 files deep (8 files beyond the main input file). One can cut-and-paste any portion of the original input file into the external file(s), even breaking up blocks of input (see example below).

Required Cards:

EXTERNAL_FILE <string>
specifies the name of the file

Examples

See also PFLOTRAN_DIR/regression_tests/default/input_format/external_files.in for an example of nesting EXTERNAL_FILE cards.

EXTERNAL_FILE regions.txt

Contents of input file before removing part of coordinate block.

REGION top_boundary
  FACE TOP
  COORDINATE
    0.d0 0.d0 30.d0
    20.d0 15.d0 30.d0
  /
END

Contents of input file after removing part of coordinate block. Note that the first two lines of the COORDINATE block above have been placed in a separate text file. This make no logical sense; just a proof of concept.

REGION top_boundary
  FACE TOP
  EXTERNAL_FILE part_of_coordinate_block.txt
    20.d0 15.d0 30.d0
  /
END

Contents of part_of_coordinate_block.txt

COORDINATE
  0.d0 0.d0 30.d0

Updated