Open aannabe opened 1 week ago
@aannabe Please can you post files from an equivalent legacy run?
@aannabe Here is an absolute correctness check you can make:
Ts
, Vd
, and Vs
into a scalar (say, at line 291).app_log()<<"summed particle energy: "<<scalar<<std::endl;
Thank you for taking a look and the suggested checks to make. I ran a similar input with the legacy code (attached below). Somehow I seem to be getting all zeros written to the stat.h5 file.
For the sake of time, we have decided to drop the EnergyDensity from our current work, but I will try to test the above once I get the time.
@PDoakORNL can you post the legacy inputs you are using to compare your batched implementation against?
Describe the bug I might be doing something wrong, but I can't get the integrated energy density to be equal to the total energy. Specifically, I am comparing the VMC total energy from the
scalar.dat
file against the integrated energy density from thestat.h5
file. The integration is carried out asnp.sum(self.total) * domain_volumes / np.sum(self.weights)
in the attachedget_edens.py
script.VMC total: -84.891(5) Ha Integrated Total Energy: -355.2907763843961
To Reproduce An example is attached. vmc_J123.zip
Expected behavior VMC total energy and the integrated edens should be equal.
System: NERSC