small update and correct broken link
This commit is contained in:
@ -25,18 +25,17 @@ following benefits:
|
|||||||
- transparent support for translating unsupported UTF-8 characters to their ASCII equivalents
|
- transparent support for translating unsupported UTF-8 characters to their ASCII equivalents
|
||||||
(the text-to-value conversion functions **only** accept ASCII characters)
|
(the text-to-value conversion functions **only** accept ASCII characters)
|
||||||
|
|
||||||
In most cases (e.g. potential files) the same data is needed on all
|
In most cases (e.g. potential files) the same data is needed on all MPI
|
||||||
MPI ranks. Then it is best to do the reading and parsing only on MPI
|
ranks. Then it is best to do the reading and parsing only on MPI rank
|
||||||
rank 0, and communicate the data later with one or more
|
0, and communicate the data later with one or more ``MPI_Bcast()``
|
||||||
``MPI_Bcast()`` calls. For reading generic text and potential
|
calls. For reading generic text and potential parameter files the
|
||||||
parameter files the custom classes :cpp:class:`TextFileReader
|
custom classes :cpp:class:`TextFileReader <LAMMPS_NS::TextFileReader>`
|
||||||
<LAMMPS_NS::TextFileReader>` and :cpp:class:`PotentialFileReader
|
and :cpp:class:`PotentialFileReader <LAMMPS_NS::PotentialFileReader>`
|
||||||
<LAMMPS_NS::PotentialFileReader>` are available. They allow reading
|
are available. They allow reading the file as individual lines for which
|
||||||
the file as individual lines for which they can return a tokenizer
|
they can return a tokenizer class (see below) for parsing the line. Or
|
||||||
class (see below) for parsing the line. Or they can return blocks of
|
they can return blocks of numbers as a vector directly. The
|
||||||
numbers as a vector directly. The documentation on `File reader
|
documentation on :ref:`File reader classes <file-reader-classes>`
|
||||||
classes <file-reader-classes>`_ contains an example for a typical
|
contains an example for a typical case.
|
||||||
case.
|
|
||||||
|
|
||||||
When reading per-atom data, the data on each line of the file usually
|
When reading per-atom data, the data on each line of the file usually
|
||||||
needs to include an atom ID so it can be associated with a particular
|
needs to include an atom ID so it can be associated with a particular
|
||||||
|
|||||||
@ -396,7 +396,7 @@ A typical code segment would look like this:
|
|||||||
|
|
||||||
----------
|
----------
|
||||||
|
|
||||||
.. file-reader-classes:
|
.. _file-reader-classes:
|
||||||
|
|
||||||
File reader classes
|
File reader classes
|
||||||
-------------------
|
-------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user