Skip to content
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

loadOrbitalsFromRestartFile -> loadRestartFile #253

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Conversation

dreamer2368
Copy link
Collaborator

As we need potential for POD training and hyperreduction, we need to load potentials from the restart file. loadOrbitalsFromRestartFile is now further simplified into loadRestartFile, where orbitals/density/potentials are all uploaded via the built-in function read_restart_file.

Also access functions getOrbitals and getHamiltonian are added for MGMol class.

@jeanlucf22 jeanlucf22 merged commit 13b8642 into release Jun 14, 2024
@jeanlucf22 jeanlucf22 deleted the loadrestart branch June 14, 2024 01:34
jeanlucf22 added a commit that referenced this pull request Aug 14, 2024
* Reenable testShortSighted test (#248)

* Make new driver to check input (#247)

* clean up/reorganize main.cc
* use shared_ptr in class MGmol

* Add possible periodic dimensions to xyz2in.py (#249)

* Add possible periodic dimensions to xyz2in.py

* Remove unused/untested option extrapolateH (#250)

* Exit with failure if density off by more than 2% (#251)

* Exit with failure if density off by more than 2%
* adapt SiH4 test to catch that
* fix bug in DFTsolver that was leading to wrong density

* Example driver (#252)

* add example driver, showing use of MGmol as a force/energy computational engine

* clean up related functions in class Ions

* loadOrbitalsFromRestartFile -> loadRestartFile (#253)

* Add SG15 PBE potential for N (#258)

* Update 2-pyridone example (#259)

* Adjust verbosity in some functions (#260)

* Add new example: pinned H2O (#261)

* Print out eigenvalues out of MVP solver (#262)

Previously, the wrong eigenvalues (0) were printed out because eigenvalues outside solver were not up-to-date.

* Add Li2 example with local GTH potential (#263)

* Fix LBFGS termination when converged (#264)

* Remove unused code to extrapolate rho (#265)

* Fix and test EnergyAndForces interface (#266)

* Atomic potentials were not updated when atomic positions were changed
* Added test to make sure energies and forces are the same after positions
  move by one mesh spacing

* Add new functionality to compute energy and forces (#267)

* use specified initial conditions for wavefunctions

---------

Co-authored-by: Jean-Luc Fattebert <[email protected]>
Co-authored-by: Kevin" Seung Whan Chung <[email protected]>
jeanlucf22 added a commit that referenced this pull request Oct 15, 2024
* Reenable testShortSighted test (#248)

* Make new driver to check input (#247)

* clean up/reorganize main.cc
* use shared_ptr in class MGmol

* Add possible periodic dimensions to xyz2in.py (#249)

* Add possible periodic dimensions to xyz2in.py

* Remove unused/untested option extrapolateH (#250)

* Exit with failure if density off by more than 2% (#251)

* Exit with failure if density off by more than 2%
* adapt SiH4 test to catch that
* fix bug in DFTsolver that was leading to wrong density

* Example driver (#252)

* add example driver, showing use of MGmol as a force/energy computational engine

* clean up related functions in class Ions

* loadOrbitalsFromRestartFile -> loadRestartFile (#253)

* Add SG15 PBE potential for N (#258)

* Update 2-pyridone example (#259)

* Adjust verbosity in some functions (#260)

* Add new example: pinned H2O (#261)

* Print out eigenvalues out of MVP solver (#262)

Previously, the wrong eigenvalues (0) were printed out because eigenvalues outside solver were not up-to-date.

* Add Li2 example with local GTH potential (#263)

* Fix LBFGS termination when converged (#264)

* Remove unused code to extrapolate rho (#265)

* Fix and test EnergyAndForces interface (#266)

* Atomic potentials were not updated when atomic positions were changed
* Added test to make sure energies and forces are the same after positions
  move by one mesh spacing

* Add new functionality to compute energy and forces (#267)

* use specified initial conditions for wavefunctions

* Add functionality to compute energy and forces (#270)

* use specified wavefunctions as solution, with unknown DM

* Add ONCV for Sulfur + example (#275)

* Fix CMakeList

* Fix test

* Bypass build error

* Fix merge mistake

---------

Co-authored-by: Jean-Luc Fattebert <[email protected]>
Co-authored-by: Kevin" Seung Whan Chung <[email protected]>
jeanlucf22 added a commit that referenced this pull request Oct 15, 2024
* Reenable testShortSighted test (#248)

* Make new driver to check input (#247)

* clean up/reorganize main.cc
* use shared_ptr in class MGmol

* Add possible periodic dimensions to xyz2in.py (#249)

* Add possible periodic dimensions to xyz2in.py

* Remove unused/untested option extrapolateH (#250)

* Exit with failure if density off by more than 2% (#251)

* Exit with failure if density off by more than 2%
* adapt SiH4 test to catch that
* fix bug in DFTsolver that was leading to wrong density

* Example driver (#252)

* add example driver, showing use of MGmol as a force/energy computational engine

* clean up related functions in class Ions

* loadOrbitalsFromRestartFile -> loadRestartFile (#253)

* Add SG15 PBE potential for N (#258)

* Update 2-pyridone example (#259)

* Adjust verbosity in some functions (#260)

* Add new example: pinned H2O (#261)

* Print out eigenvalues out of MVP solver (#262)

Previously, the wrong eigenvalues (0) were printed out because eigenvalues outside solver were not up-to-date.

* Add Li2 example with local GTH potential (#263)

* Fix LBFGS termination when converged (#264)

* Remove unused code to extrapolate rho (#265)

* Fix and test EnergyAndForces interface (#266)

* Atomic potentials were not updated when atomic positions were changed
* Added test to make sure energies and forces are the same after positions
  move by one mesh spacing

* Add new functionality to compute energy and forces (#267)

* use specified initial conditions for wavefunctions

* Add functionality to compute energy and forces (#270)

* use specified wavefunctions as solution, with unknown DM

* Add ONCV for Sulfur + example (#275)

* Fix EnergyAndForces tests (#277)

* have them work in debug mode too

* Move factor 4pi out og linear solvers (#278)

* Move some code into PoissonSolverFactory (#279)

* Clean up class Potentials (#280)

* Clean up class Ions, add test for it (#281)

---------

Co-authored-by: Jean-Luc Fattebert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants