LatticeQCD / SIMULATeQCD

SIMULATeQCD is a multi-GPU Lattice QCD framework that makes it easy for physicists to implement lattice QCD formulas while still providing competitive performance.
https://latticeqcd.github.io/SIMULATeQCD/
MIT License
30 stars 12 forks source link

gauge_file and Gaugefile? #61

Closed clarkedavida closed 2 years ago

clarkedavida commented 2 years ago

Can someone please tell me the difference between gauge_file in rhmcParameters.h and GaugefileName in latticeParameters.h? If these are the same, one should be removed. If these are different, they should be renamed...

lukas-mazur commented 2 years ago

Indeed, we have two different names for the same thing. I agree, they should be renamed..

clarkedavida commented 2 years ago

I would recommend that we use GaugefileName instead of gauge_file, since rhmcParameters inherits from latticeParameters. I guess some people using gauge_file in their scripts will suffer, but people using Gaugefile would have suffered if we made the other decision.

luhuhis commented 2 years ago

There was a similar issue with the parameters "config_no" and "conf_nr". When writing the RHMC I guess not much attention was paid to the parameters of the base class

clarkedavida commented 2 years ago

OK I now see the difference. GaugefileName is when you have the entire gauge field name to read in, and gauge_file is rather just a prefix like l366f21b6170m00336m0908_s0. where someone can put a configuration number at the end.

In that sense gauge_file makes sense but it is just poorly named. I think for now I'm going to just rename it to something like gaugeFilePrefix or something in the code, leaving it as gauge_file in the parameters so scripts don't have to change.

clarkedavida commented 2 years ago

I have added some clarifying comments in a05a67c9b8935cc8c0774afddfd14defbb3cf64c. I will close this issue when it's merged in.