• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版0a192afb7a3d5e52db36200a975924e848793f97 (tree)
时间2011-07-06 10:51:23
作者Mikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

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

更改概述

差异

--- a/doc/README.txt
+++ b/doc/README.txt
@@ -62,6 +62,11 @@ How to Write Input-files:
6262 -options
6363 "davidson", "active_occ", "active_vir", and "nstates" are prepared as options.
6464
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+
6570 Default value of "davidson" is "yes".(One can select "yes" or "no" for option "davidson".)
6671 Default value of "active_occ" is 10.
6772 Default value of "active_vir" is 10.
--- a/src/base/InputParser.h
+++ b/src/base/InputParser.h
@@ -526,11 +526,15 @@ void InputParser::CalcCisCondition(Molecule* molecule){
526526 // check the number of calculated excited states.
527527 int numberExcitedStates = Parameters::GetInstance()->GetActiveOccCIS()
528528 *Parameters::GetInstance()->GetActiveVirCIS();
529- if(numberExcitedStates < Parameters::GetInstance()->GetNumberExcitedStatesCIS()){
529+ if(!Parameters::GetInstance()->GetIsDavidsonCIS()){
530530 Parameters::GetInstance()->SetNumberExcitedStatesCIS(numberExcitedStates);
531- }
531+ }
532+ else{
533+ if(numberExcitedStates < Parameters::GetInstance()->GetNumberExcitedStatesCIS()){
534+ Parameters::GetInstance()->SetNumberExcitedStatesCIS(numberExcitedStates);
535+ }
536+ }
532537
533-
534538 }
535539
536540 void InputParser::OutputMolecularBasics(Molecule* molecule){
--- a/src/input.in
+++ b/src/input.in
@@ -19,10 +19,10 @@ SCF
1919 SCF_END
2020
2121 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
2626 CIS_END
2727
2828