MCTDH: Libraries

Back to Main Menu

Libraries Description

General Information

The libraries contain routines which are independent of the rest of the package, e.g. they do not use the include linking the main programs. They thus have a special status and are kept together in the $MCTDH_DIR/source/lib directory.

When changing a library routine, try to avoid changing an interface. This could lead to unforeseen problems in a program.

The following libraries are employed by the MCTDH program:

Compiling the Library

The libraries are automatically compiled as required when a program is compiled. It is also possible to compile the libraries separately using the general compile script. Typing

compile lib

will compile all the library archives. A single archive can also be compiled, e.g.

compile libnum

will compile the NUM library.

One useful feature of the compilation procedure is that it is possible to generate debug code for a program with optimised libraries, e.g.

compile -d quantics

compiles a debug version (quanticsd) of the QUANTICS program with optimised libraries. This is useful as the library routines need a large percentage of the computer time, and this speeds up the process of debugging. To compile a program with debug information also for the library, use the -D option.

For more details on the $MCTDH_DIR/bin/compile script, see Compiling the programs.

Contents of the Library LAPACK

This is not the complete LAPACK library, but only those selected routines from NETLIB's reference implementation which are needed by MCTDH.

Contents of the Library BLAS

Like above, this is not the complete BLAS library, but only those selected routines from NETLIB's reference implementation which are needed by MCTDH.

Contents of the Library LA

The library la contains routines for linear algebra calculations. The code is contained in various files:

Contents of the Library ODE

The library ode contains various integrators for ordinary differential equations. The following files and routines exist:

Contents of the Library NUM

The library num contains routines for various numerical operations. The following files and routines exist:

Contents of the Library SYS

The library sys contains routines concerning the machine and the operating system. The following files and routines exist: