We noticed that the lattice_dyson_g functions in the gf.cpp file were not thread safe. In this PR this is fixed by initializing the Green functions to zero before performing the parallelized loop.
In addition the code was cleaned up by defining a generic for the lattice_dyson_g functions and by removing the CMake option 'enable extra OpenMP threading', which was only used in the gf.cpp file and we believe to be unnecessary.
Finally a test was added for the lattice_dyson_g functions.
We noticed that the lattice_dyson_g functions in the gf.cpp file were not thread safe. In this PR this is fixed by initializing the Green functions to zero before performing the parallelized loop.
In addition the code was cleaned up by defining a generic for the lattice_dyson_g functions and by removing the CMake option 'enable extra OpenMP threading', which was only used in the gf.cpp file and we believe to be unnecessary.
Finally a test was added for the lattice_dyson_g functions.