Skip to content
Snippets Groups Projects
Commit c6cccd87 authored by Karl-Michael Schindler's avatar Karl-Michael Schindler
Browse files

Create DEVELOPER NOTES

parent c0596dfb
Branches
No related tags found
No related merge requests found
This is the new version of inputs and uses yaml input files. There are differences to the original eelsin/bosin input files.
*** YAML input ***
The input of yaml files uses the package fortran-yaml-c from:
https://github.com/Nicholaswogan/fortran-yaml-c
This is a fortran interface to the common C-library libyaml.
The package needs libyaml, gfortran and cmake and is build from sources with these commands:
mkdir build
cd build
cmake ..
cmake --build .
Among others, it creates these files:
fortran_yaml_c_interface.mod fortran_yaml_c_interface.f90.o fortran_yaml_c_types.mod fortran_yaml_c_types.f90.o fortran_yaml_c.mod fortran_yaml_c.f90.o libyaml_interface.c.o
Search for and copy them to your preferred location. If you like, you can also remove the .f90 and .c from the names.
Compile your source with a correspondingly adjusted command:
gfortran libyaml_interface.o fortran_yaml_c_interface.o fortran_yaml_c_types.o fortran_yaml_c.o -lyaml -L/opt/local/lib -o test test.f90
Or do it in a Makefile.
In the fortran file add
use fortran_yaml_c
For the details of usage, check out example.f90 and test_yaml.f90 in fortran-yaml-c/tests.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment