-
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
LoadOrbitalsFromRestartFile and miscellaneous changes #226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dreamer2368 this looks good to me. Thanks. Have you been able to test the load functionality yet?
In short answer, yes. |
@jeanlucf22 , I commented out some unnecessary parts. I left them commented, since we're not sure whether they may be needed in future for ROM workflow. Also see the detailed comments above. |
I would remove most of the comments: I don't think they are useful, and some may be misleading in this context. Beside, this makes a relatively simple function look very complicated |
* Fix build with HDF5P on (#231) * LoadOrbitalsFromRestartFile and miscellaneous changes (#226) * Signal.h -> mgmol_Signal.h * Carbyne example files. * fixed FindSCALAPACK.cmake to search for default paths * MGmol::loadOrbitalFromRestartFile * nullptr initialization --------- Co-authored-by: Jean-Luc Fattebert <fattebertj@ornl.gov>
Once merged to release branch, this PR must be merged from release to ROMFPMD.
loadOrbitalFromRestartFile
MGmol<OrbitalsType>::loadOrbitalFromRestartFile(const std::string filename)
reads a restart file from a specified filename, initializes an orbitals based on the restart file.While
LocGridOrbitals::read_func_hdf5
orExtendedGridOrbitals::read_func_hdf5
do read orbital data from a restart file, additional initialization routines are necessary to directly use an orbital from a file. These routines, at least forMD
-type simulation, are spread throughout the entire workflow. The newly implemented functionloadOrbitalFromRestartFile
collected all these necessary routines to initialize orbitals, so that the returned orbital is ready to use right away.Caveats:
MD
orQuench
type simulationsrestart_info = 4
) is allowed for now.Miscellaneous changes
cmake_modules/FindSCALAPACK.cmake
searches default paths for scalapack library.src/tools/Signal.h
->src/tools/mgmol_Signal.h
MGmol<OrbitalsType>::orbitals_extrapol_
andOrbitalsExtrapolation::orbitals_minus1_
are initialized asnullptr
at class declaration. This is a change reflecting the issuenullptr
initialization of pointer member variables in class definition #223 .