修订版 | 0a192afb7a3d5e52db36200a975924e848793f97 (tree) |
---|---|
时间 | 2011-07-06 10:51:23 |
作者 | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
nstates option for CIS is valid for only the Davidson algorithm.
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@109 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -62,6 +62,11 @@ How to Write Input-files: | ||
62 | 62 | -options |
63 | 63 | "davidson", "active_occ", "active_vir", and "nstates" are prepared as options. |
64 | 64 | |
65 | + "active_occ" ("active_vir") is set to the number of occupied (virtual) orbitals | |
66 | + if user set "active_occ" ("active_vir") to be greater than the number of occupied (virtual) orbitals. | |
67 | + "nstates" is valid for the Davidson algorithm only, hence "nstates" is set to "active_occ*active_vir" | |
68 | + without the Davidson algorithem. | |
69 | + | |
65 | 70 | Default value of "davidson" is "yes".(One can select "yes" or "no" for option "davidson".) |
66 | 71 | Default value of "active_occ" is 10. |
67 | 72 | Default value of "active_vir" is 10. |
@@ -526,11 +526,15 @@ void InputParser::CalcCisCondition(Molecule* molecule){ | ||
526 | 526 | // check the number of calculated excited states. |
527 | 527 | int numberExcitedStates = Parameters::GetInstance()->GetActiveOccCIS() |
528 | 528 | *Parameters::GetInstance()->GetActiveVirCIS(); |
529 | - if(numberExcitedStates < Parameters::GetInstance()->GetNumberExcitedStatesCIS()){ | |
529 | + if(!Parameters::GetInstance()->GetIsDavidsonCIS()){ | |
530 | 530 | Parameters::GetInstance()->SetNumberExcitedStatesCIS(numberExcitedStates); |
531 | - } | |
531 | + } | |
532 | + else{ | |
533 | + if(numberExcitedStates < Parameters::GetInstance()->GetNumberExcitedStatesCIS()){ | |
534 | + Parameters::GetInstance()->SetNumberExcitedStatesCIS(numberExcitedStates); | |
535 | + } | |
536 | + } | |
532 | 537 | |
533 | - | |
534 | 538 | } |
535 | 539 | |
536 | 540 | void InputParser::OutputMolecularBasics(Molecule* molecule){ |
@@ -19,10 +19,10 @@ SCF | ||
19 | 19 | SCF_END |
20 | 20 | |
21 | 21 | CIS |
22 | - davidson no | |
23 | - active_occ 3 | |
24 | - active_vir 2 | |
25 | - nstates 1000 | |
22 | + davidson yes | |
23 | + active_occ 100 | |
24 | + active_vir 100 | |
25 | + nstates 10 | |
26 | 26 | CIS_END |
27 | 27 | |
28 | 28 |