-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot recompute rho after loading a restart file. #288
Comments
After PR #291, #292, #293, PR #291 - #293 did fix the inconsistency issue between density matrix and electronic density in the same restart file. Test on Poisson ROM solver verified the ROM for electronic density up to machine precision. However, the resulting potential is still inconsistent, having about 6~7% error on a reproductive case. Just as for electronic density, it is expected to have a machine-precision error ( I rebased @jeanlucf22 , can you look into this branch The executable can be run just as the main mgmol driver, with a config file specifying a restart file:
|
@dreamer2368 I cannot reproduce the error. Actually, as is, your test code fails already in testing Rho to to a very tight tolerance. But if I loosen that tolerance, the error I see is very small. |
@jeanlucf22 , can you confirm that the test fails with a newly saved restart file (that has If the test_rho_restart still fails, it means PR #291 still doesn't fix the issue. With this inconsistency, we cannot discern whether an error comes from this inconsistency, ROM approximation, or a bug. |
Actually, I was using a restart in single precision. I now switched to double and the test on rho passes. FOM potential relative error: 2.289e-05 which may be explained by the iterative solver not converged to machine precision. |
For debugging purpose, I'm trying to check if I'm properly loading the density from a restart file. Following snippet attempts to load a restart file, recompute the density and compare it from the density in the restart file:
This is also implemented in
rho-bug
branch, as an executabletest_rho_restart
. This does not need libROM library, same installation asrelease
branch. It can be run just asmgmol_opt
:However, when I try this on any restart file of Carbyne example, I receive the following error:
@jeanlucf22 , can you take a look at this minimal example and check if I'm doing something wrong here? This test is necessary before I get into debugging other parts of ROM. I can send you a config and restart file as well if needed.
The text was updated successfully, but these errors were encountered: