@@ -554,42 +554,42 @@ may be useful anyway. See :ref:`sec-output` for more details.
554554Input and Output
555555----------------
556556
557- The output (dump) files with time-history are controlled by settings
558- in a section called “ output” . Restart files contain a single
559- time-slice, and are controlled by a section called “ restart” . The
560- options available are listed in table :numref: `tab-outputopts `.
557+ The output (dump) files with time-history are controlled by settings in a
558+ section called `` " output" `` . Restart files contain a single time-slice, and are
559+ controlled by a section called `` " restart" `` . The options available are listed
560+ in table :numref: `tab-outputopts `.
561561
562562.. _tab-outputopts :
563563.. table :: Output file options
564564
565- +-------------+----------------------------------------------------+--------------+
566- | Option | Description | Default |
567- | | | value |
568- +-------------+----------------------------------------------------+--------------+
569- | enabled | Writing is enabled | true |
570- +-------------+----------------------------------------------------+--------------+
571- | type | File type e.g. "netcdf" or "adios" | "netcdf" |
572- +-------------+----------------------------------------------------+--------------+
573- | prefix | File name prefix | "BOUT.dmp" |
574- +-------------+----------------------------------------------------+--------------+
575- | path | Directory to write the file into | ``datadir `` |
576- +-------------+----------------------------------------------------+--------------+
577- | floats | Write floats rather than doubles | false |
578- +-------------+----------------------------------------------------+--------------+
579- | flush | Flush the file to disk after each write | true |
580- +-------------+----------------------------------------------------+--------------+
581- | guards | Output guard cells | true |
582- +-------------+----------------------------------------------------+--------------+
583- | openclose | Re-open the file for each write, and close after | true |
584- +-------------+----------------------------------------------------+--------------+
565+ +----------------------+-----------------------------------------+----------------+
566+ | Option | Description | Default value |
567+ +======================+=========================================+================+
568+ | ``append `` | Append to existing file if true, | ``false `` |
569+ | | otherwise overwrite | |
570+ +----------------------+-----------------------------------------+----------------+
571+ | ``enabled `` | Writing is enabled | ``true `` |
572+ +----------------------+-----------------------------------------+----------------+
573+ | ``flush_frequency `` | How many output timesteps between | ``1 `` |
574+ | | writing output to disk (NetCDF only) | |
575+ +----------------------+-----------------------------------------+----------------+
576+ | ``prefix `` | File name prefix | ``"BOUT.dmp" `` |
577+ +----------------------+-----------------------------------------+----------------+
578+ | ``path `` | Directory to write the file into | ``datadir `` |
579+ +----------------------+-----------------------------------------+----------------+
580+ | ``type `` | File type, either ``"netcdf" `` or | ``"netcdf" `` |
581+ | | ``"adios" `` | |
582+ +----------------------+-----------------------------------------+----------------+
585583
586584|
587585
588- **enabled ** is useful mainly for doing performance or scaling tests, where you
589- want to exclude I/O from the timings. **floats ** can be used to reduce the size
590- of the output files: files are stored as double by default, but setting
591- **floats = true ** changes the output to single-precision floats.
592-
586+ - ``enabled `` is useful mainly for doing performance or scaling tests, where you
587+ want to exclude I/O from the timings.
588+ - If you find that IO is taking more and more time as your simulation goes on,
589+ try setting ``flush_frequency `` to a larger value such as ``10 ``. This can
590+ workaround an issue with NetCDF where subsequent writes take longer and
591+ longer. However, larger values risk losing more data in the event of a crash
592+ or the simulation being killed early.
593593
594594Implementation
595595--------------
0 commit comments