Running demo files¶
The Recola and Recola2 library come with several demo files located in
The demo files illustrate the usage from the basic features (
specifc features (e.g. computation of colour-correlations in
small introduction to each demo-file can be found in the official manuals.
The demo files come in three languages, namely Fortran95, C++ and Python . The Fortran95 and C++ demo files can be run by invoking the run script:
<demofile> can be
The python demo files can be run directly via:
<demofile> taking the values
|||The Python interface is only available in Recola2.|
Minimal demo file¶
Computations in Recola follow the strict order:
Custom demo files¶
The demo files can be modified and manipulated at will. Adding new demo files requires to follow the naming conventions:
- Fortran95: demo*_rcl.f90,
- C++: cdemo*_rcl.cpp,
otherwise sources will not be added to the list of executables by the CMake configuration. Here, the * is a wildcard accepting arbitrary character strings. In order to compile newly added source files a reconfiguration of the Recola/Recola2 library is required. To this end, switch to the build folder and run:
cmake [options] ..
Alternatively, the Recola2 library can be used in an external project as
exemplified in recola2-collier-2.2.0 in
(see also the official manual).
Setting up Python demo files is straightforward, i.e. without restrictions concerning naming conventions of demo files.