2018-11-20 11:33:07 +01:00
|
|
|
.. _qp_edit:
|
|
|
|
|
|
|
|
=======
|
|
|
|
qp_edit
|
|
|
|
=======
|
|
|
|
|
2019-01-05 01:51:21 +01:00
|
|
|
.. program:: qp_edit
|
|
|
|
|
2018-11-20 11:33:07 +01:00
|
|
|
|
|
|
|
This command reads the content of the |EZFIO| directory and creates a temporary
|
2019-01-14 15:20:51 +01:00
|
|
|
file containing the data. The data is presented as a *ReStructured Text* (rst)
|
|
|
|
document, where each section corresponds to the corresponding |qp| module. The
|
|
|
|
content of the file can be modified to change the input parameters. When the
|
|
|
|
text editor is closed, the updated data is saved into the |EZFIO| directory.
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-02 23:22:46 +01:00
|
|
|
.. note::
|
|
|
|
The text editor which will be opened is defined by the :envvar:`EDITOR`
|
2019-01-14 15:20:51 +01:00
|
|
|
environment variable. If this variable is not set, the :command:`vi`
|
|
|
|
text editor will be used by default.
|
2019-01-02 23:22:46 +01:00
|
|
|
|
2018-11-20 11:33:07 +01:00
|
|
|
.. warning::
|
|
|
|
When the wave function is too large (more than 10 000 determinants), the
|
|
|
|
determinants are not displayed.
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
2019-01-14 19:52:41 +01:00
|
|
|
qp_edit [-c] [-h] [-n <int>] [-s <range>] [--] EZFIO_DIR
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
.. option:: -c, --check
|
2018-11-20 11:33:07 +01:00
|
|
|
|
|
|
|
Checks the input data
|
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
.. option:: -h, --help
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
Print the help text and exits
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
.. option:: -n, --ndet=<int>
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
Truncates the wavefunction to the target number of determinants
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
.. option:: -s, --state=<range>
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
Select the states to extract from the |EZFIO| directory, using the same conventions
|
|
|
|
as :ref:`qp_set_mo_class`. See example below.
|
2018-11-20 11:33:07 +01:00
|
|
|
|
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
Example
|
|
|
|
-------
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
.. code:: bash
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
qp_edit --state="[1,3-5]" test.ezfio
|
2018-11-20 11:33:07 +01:00
|
|
|
|
2019-01-14 15:20:51 +01:00
|
|
|
Removes all states except states 1,3,4 and 5 from :file:`test.ezfio`. The
|
|
|
|
resulting |EZFIO| directory has 4 states.
|
2018-11-20 11:33:07 +01:00
|
|
|
|