quantum_package/src
Anthony Scemama b797a9ed69 Merge branch 'master' of git://github.com/LCPQ/quantum_package
Conflicts:
	src/NEEDED_MODULES
2015-04-02 12:08:13 +02:00
..
AOs Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
Bielec_integrals Add new type Disk_access (Read Write None) 2015-04-01 14:14:01 +02:00
Bitmask Repaired QP 2015-03-26 00:44:37 +01:00
CAS_SD_selected Merge branch 'master' of git://github.com/LCPQ/quantum_package 2015-04-02 12:08:13 +02:00
CID BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
CID_SC2_selected BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
CID_selected BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
CIS BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
CISD BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
CISD_SC2_selected BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
CISD_selected BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
DDCI_selected BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
DensityMatrix Hartree-Fock works well 2014-06-25 14:58:58 +02:00
Dets Merge branch 'master' of git://github.com/LCPQ/quantum_package 2015-04-02 12:08:13 +02:00
Electrons Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
Ezfio_files Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
FCIdump BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
Full_CI BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
Generators_CAS Merge branch 'master' of git://github.com/LCPQ/quantum_package 2015-04-02 12:08:13 +02:00
Generators_full Merge branch 'master' of git://github.com/LCPQ/quantum_package 2015-04-02 12:08:13 +02:00
Generators_restart Merge branch 'master' of git://github.com/LCPQ/quantum_package 2015-04-02 12:08:13 +02:00
Hartree_Fock Amelioration of unit test 2015-04-01 14:56:52 +02:00
MOGuess Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
MOs Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
MP2 BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
MRCC Corrected CAS-SD bug 2015-04-02 11:40:16 +02:00
Molden Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
MonoInts Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
Nuclei Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
Output Lots of cleaning in scripts and Makefiles 2015-03-26 00:33:45 +01:00
Perturbation Merge branch 'master' of git://github.com/LCPQ/quantum_package 2015-04-02 12:08:13 +02:00
Properties BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
Selectors_full BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
Selectors_no_sorted BiInt => Bielec_integrals 2015-03-31 10:51:11 +02:00
SingleRefMethod Corrected CAS-SD bug 2015-04-02 11:40:16 +02:00
Utils Corrected SegFault with ifort 2015-03-26 23:38:40 +01:00
include Added Utils, Electrons, Ezfio, Nuclei, include, AOs. 2014-04-01 18:38:51 +02:00
.gitignore Introduce ezfio_interface.py and EZFIO.cfg in Full_CI 2015-03-24 19:52:01 +01:00
ASSUMPTIONS.rst Auto-update README.rst 2014-04-04 00:41:43 +02:00
Makefile Added spindeterminants EZFIO routines 2015-03-27 13:38:44 +01:00
Makefile.common Corrected CAS-SD bug 2015-04-02 11:40:16 +02:00
Makefile.config.example NEEDS IRPF90 1.4.1 -- Cleaned all PROVIDEs 2014-10-08 23:24:55 +02:00
Makefile.config.gfortran Compiles with gfortran. Closes #33 2015-03-24 09:39:13 +01:00
Makefile.config.ifort NEEDS IRPF90 1.4.1 -- Cleaned all PROVIDEs 2014-10-08 23:24:55 +02:00
NEEDED_MODULES Merge branch 'master' of git://github.com/LCPQ/quantum_package 2015-04-02 12:08:13 +02:00
README.rst A lot of cleaning. Removed CIS_dressed. 2015-01-15 14:00:00 +01:00
q_package.ezfio_config Added scripts 2014-04-03 01:45:22 +02:00

README.rst

======================
Programming guidelines
======================

Each module (directory) contains the following:

* A ``README.rst`` file to document the current module.
* An ``ASSUMPTIONS.rst`` file. This file should document all the implicit
  assumptions used in the module. For example, if the atomic orbitals are
  assumed to be normalized, this should be mentioned in the
  ``AOs/ASSUMPTIONS.rst`` file.
* A ``NEEDED_MODULES`` file which contains the list of modules on which the
  current module depends
* A set of ``.irp.f`` files containing provider, subroutines and functions
* A ``Makefile`` that should compile
* Optionally some ``*.ezfio_config`` configuration files for the EZFIO
  library

A new module may be created by invoking the ``create_module.sh`` script.

Every subroutine, function or provider should be documented using the
BEGIN_DOC ... END_DOC block. The documentation should be written in
ReStructured Text format to enable the automatic generation of the Sphinx
documentation.

When the current module depends on other modules, the list of modules should
be added in the ``NEEDED_MODULES`` file.


Creating a new module
=====================

Every new module should be created using the interactive ``create_module.sh``
script located in the ``${QPACKAGE_ROOT}/scripts`` directory. This will create
all the required files with correct templates.


Makefiles
=========

Use the structure of Makefiles provided by the ``create_module.sh`` script. If
you need to re-create the Makefile, you can use the ``create_Makefile.sh``
script in the current module directory.

If you need to add some Fortran or C files that should not be tracked by IRPF90,
you have to add them manually to the Makefile in the ``SRC`` variable.
You also need to add the corresponding ``*.o`` file prefixed by ``IRPF90_temp/``.
For example

.. code-block:: Makefile

  SRC=map_module.f90
  OBJ=IRPF90_temp/map_module.o



Input data
==========

Every program is supposed to use an EZFIO database containing all the
persistent data. This database can be modified in using the generated Fortran
functions or the generated Python module.

The definition of the data needed by the module should be put in the
``*.ezfio_config`` file.

Input data can also be read from the standard input to enable the use of
a program with a pipe, but the read statements should be present **only** in
the main program.


Output data
===========

Print to stdout statements should only appear in programs, not in providers,
subroutines or functions. This enables the possibility easily use the programs
with pipes.

To print, you should write in an output file provided by the ``Output``
module. Every module has its own output file. Before printing something,
a timestamp should be put in the output with the ``write_time`` function.
This allows an external script to read all the pieces of the output files
and put them in a sequential order. The format of the output should be
in ReStructured Text for easy transformation of the output data to pdf,
HTML, man, etc.


Creating a shell script
=======================

Shell scripts should be located in the ``${QPACKAGE_ROOT}/scripts`` directory.
Relative paths should be avoided as much as possible, and the result of commands
should be always checked. For example, when creating a directory the existence
of the directory has to be checked.


Documentation
=============

.. Do not edit this section. It was auto-generated from the
.. NEEDED_MODULES file.



Needed Modules
==============

.. Do not edit this section. It was auto-generated from the
.. NEEDED_MODULES file.

* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_