Skip to content

Commit 5f42e18

Browse files
authored
Update README.md
1 parent 426f44b commit 5f42e18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ For instance, if a local source-build of CepGen is used, these two can take the
1717
export CEPGEN_LIBS_DIR=<path/to/cepgen/sources>/build
1818
export CEPGEN_INCLUDE_DIR=<path/to/cepgen/sources>
1919
```
20+
21+
In this example, the `dummy_process` Fortran double-precision typed function is built from the `*.f` source files (here, only [dummy_process.f](dummy_process.f), and registered using the [ProcessesWrapper.cpp](ProcessesWrapper.cpp) file.
22+
This latter acts as a link between the CepGen runtime environment and this new process definition.
23+
Two functions are respectively declaring the main matrix element, and registering it into the runtime database.
24+
* `DECLARE_FORTRAN_FUNCTION( dummy_process )` takes the F77 name of the function as an argument.
25+
* `REGISTER_FORTRAN_PROCESS( dummy, "A dummy Fortran process", dummy_process )` links this function to a new CepGen process named `dummy`, described with the second argument.

0 commit comments

Comments
 (0)