-
Notifications
You must be signed in to change notification settings - Fork 31
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
FCI and GENCI initial core guess determinants for Davidson-Liu solver #377
base: main
Are you sure you want to change the base?
Conversation
specific state core guess for fci module
tests for core guess
added docs
guess_dets.push_back(det); | ||
} | ||
} else { | ||
guess_dets.push_back(det); |
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.
Let us change push_back to emplace_back here, though the speed does not matter at this place. I can barely find a place where emplace_back is worse than push_back
docs/source/options.rst
Outdated
@@ -1863,6 +1863,14 @@ Type: int | |||
|
|||
Default value: 10 | |||
|
|||
**CORE_GUESS** |
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.
I think we need a better name for this. Core_guess does not make sense to me. Making it longer and clearer what it means.
Please ensure your "User Notes" and "Checklist" correspond to your changes. See other PR for examples. |
} else { | ||
repr += "_" + std::to_string(0); | ||
} | ||
|
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.
repr += "" + std::to_string(core_guess ? 1 : 0);
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.
Make some changes suggested by comments and these are good to go!
Description
PR incorporates the feature to run a FCI (or GENCI) calculation(s) with core-excited determinants as the initial guess space for the Davidson-Liu solver. Core-excited determinants include determinant strings with single- and none-occupation on the first position.
User Notes
Added default boolean parameter (
bool core_guess
) toStateInfo
class.Added protected boolean member variable (
core_guess_
) toActiveSpaceMethod
class.ActiveSpaceSolver
assigns values ofDL_CORE_INITIAL_GUESS
toStateInfo
object,StateInfo
maps this value toActiveSpaceMethod
, which passes value to GENCI or FCI solver.Feature is implemented for
GENCI
andFCI
solvers only.Included two test cases,
fci-core-1
andfci-core-2
, for the implemented feature.Added default boolean parameter (
bool core_guess
) tofind_initial_guess_det
member function of Forte.This feature prints the value(s) of
DL_CORE_INITIAL_GUESS
in an appropriate place ("Initial Guess") of the output.dat file. To avoid cluttering the parameter list of this function consider creating an instance ofActiveSpaceMethod
insparce_ci_initial_guess.cc
.Checklist
output.ref
file