etmc / tmLQCD

tmLQCD is a freely available software suite providing a set of tools to be used in lattice QCD simulations. This is mainly a HMC implementation (including PHMC and RHMC) for Wilson, Wilson Clover and Wilson twisted mass fermions and inverter for different versions of the Dirac operator. The code is fully parallelised and ships with optimisations for various modern architectures, such as commodity PC clusters and the Blue Gene family.
http://www.itkp.uni-bonn.de/~urbach/software.html
GNU General Public License v3.0
32 stars 47 forks source link

different return value content for tmLQCD_invert and invert_quda_direct #438

Open marcuspetschlies opened 5 years ago

marcuspetschlies commented 5 years ago

return 0 upon success vs. return iteration number ?

marcuspetschlies commented 5 years ago

I guess return < 0 catches errors in both cases.

kostrzewa commented 5 years ago

so invert_quda_direct indeed returns the number of iterations. tmLQCD_invert should probably also be made to return the number of iterations for consistency reasons, good catch