Describe the bug
Builds with -DCMAKE_BUILD_TYPE=Release and -DCMAKE_BUILD_TYPE=Debug give very different chemical potential and energies.
Expected behavior
One would expect mu to be the same in both runs. The difference seems to be too big to be explained by numerical issues (although the number of electrons does not differ much). The computed total energies and correlation energies are very different, which is concerning.
Reproduction steps
The two versions that I used are the latest ones cloned from github and compiled as below
Describe the bug Builds with
-DCMAKE_BUILD_TYPE=Release
and-DCMAKE_BUILD_TYPE=Debug
give very different chemical potential and energies.Expected behavior One would expect mu to be the same in both runs. The difference seems to be too big to be explained by numerical issues (although the number of electrons does not differ much). The computed total energies and correlation energies are very different, which is concerning.
Reproduction steps The two versions that I used are the latest ones cloned from github and compiled as below
and
Both builds pass all the tests.
A quick test demonstrating the problem:
This is an output from sdiff between two runs for the first chemical potential seach:
The energies are different too:
Platform (please complete the following information): Perlmutter