• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Révision620c454a5c9286d2bc8fd91da2a2735e8453a104 (tree)
l'heure2013-05-22 14:00:44
AuteurMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Message de Log

validation for excited states dynamics with ZindoS is updated. #31221

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1345 1136aad2-a195-0410-b898-f5ea1d11b9d8

Change Summary

Modification

--- a/doc/README.txt
+++ b/doc/README.txt
@@ -103,7 +103,7 @@ CAPABILITIES:
103103 ---------|-----|-----|--------|--------|--------|--------|----------|----------|--------------|--------------|-----------------|
104104 INDO | OK | -- | -- | -- | OK | -- | -- | -- | -- | -- | -- |
105105 ---------|-----|-----|--------|--------|--------|--------|----------|----------|--------------|--------------|-----------------|
106- ZINDO/S | OK | OK | OK | -- | OK | OK | OK | -- | OK | -- | -- |
106+ ZINDO/S | OK | OK | OK | OK | OK | OK | OK | OK | OK | OK | -- |
107107 ---------|-----|-----|--------|--------|--------|--------|----------|----------|--------------|--------------|-----------------|
108108 MNDO | OK | OK | OK | OK | OK | OK | OK | OK | OK | OK | OK |
109109 ---------|-----|-----|--------|--------|--------|--------|----------|----------|--------------|--------------|-----------------|
--- a/src/base/InputParser.cpp
+++ b/src/base/InputParser.cpp
@@ -78,10 +78,14 @@ void InputParser::SetMessages(){
7878 = "Error in base::InputParser::GetInputTerms: Input file is empty.\n";
7979 this->errorMessageNotFoundInputFile
8080 = "Error in base::InputParser::StoreInputTermsFromFile: Not found.\n";
81+ this->errorMessageNonValidTheoriesMD
82+ = "Error in base::InputParser::ValidateMdConditions: Theory you set is not supported for MD.\n";
8183 this->errorMessageNonValidExcitedStatesMD
8284 = "Error in base::InputParser::ValidateMdConditions: Excited state on which MD runs or CIS condition are wrong.\n";
8385 this->errorMessageNonValidExcitedStatesMC
8486 = "Error in base::InputParser::ValidateMcConditions: Excited state on which MC runs or CIS condition are wrong.\n";
87+ this->errorMessageNonValidTheoriesRPMD
88+ = "Error in base::InputParser::ValidateRpmdConditions: heory you set is not supported for RMPD.\n";
8589 this->errorMessageNonValidExcitedStatesRPMD
8690 = "Error in base::InputParser::ValidateRpmdConditions: Excited state on which RPMD runs or CIS condition are wrong.\n";
8791 this->errorMessageNonValidTheoriesNASCO
@@ -90,6 +94,8 @@ void InputParser::SetMessages(){
9094 = "Error in base::InputParser::ValidateNascoConditions: The Number of electronic states of NASCO should be not over the number of CIS excited states plus 1.\n";
9195 this->errorMessageNonValidInitialElectronicStateNASCO
9296 = "Error in base::InputParser::ValidateNascoConditions: The initial electronic states for NASCO should be set to one of the electronic eigenstates used in NASCO.\n";
97+ this->errorMessageNonValidTheoriesOptimization
98+ = "Error in base::InputParser::ValidateOptimizationConditions: heory you set is not supported for optimization.\n";
9399 this->errorMessageNonValidExcitedStatesOptimization
94100 = "Error in base::InputParser::ValidateOptimizationConditions: Excited state on which optimization is carried out or CIS condition are wrong.\n";
95101 this->errorMessageNonValidElectronicStateFrequencies
@@ -1371,8 +1377,7 @@ void InputParser::ValidateMdConditions(const Molecule& molecule) const{
13711377 // Validate theory
13721378 if(theory == CNDO2 || theory == INDO ){
13731379 stringstream ss;
1374- ss << this->errorMessageNonValidExcitedStatesMD;
1375- ss << this->errorMessageElecState << targetStateIndex << endl;
1380+ ss << this->errorMessageNonValidTheoriesMD;
13761381 ss << this->errorMessageTheory << TheoryTypeStr(theory) << endl;
13771382 throw MolDSException(ss.str());
13781383 }
@@ -1383,7 +1388,7 @@ void InputParser::ValidateMdConditions(const Molecule& molecule) const{
13831388 this->ValidateCisConditions(molecule);
13841389 }
13851390 int numberExcitedStatesCIS = Parameters::GetInstance()->GetNumberExcitedStatesCIS();
1386- if(numberExcitedStatesCIS < targetStateIndex){
1391+ if(groundStateIndex < targetStateIndex && numberExcitedStatesCIS < targetStateIndex){
13871392 stringstream ss;
13881393 ss << this->errorMessageNonValidExcitedStatesMD;
13891394 ss << this->errorMessageElecState << targetStateIndex << endl;
@@ -1425,10 +1430,9 @@ void InputParser::ValidateRpmdConditions(const Molecule& molecule) const{
14251430 int targetStateIndex = Parameters::GetInstance()->GetElectronicStateIndexRPMD();
14261431 TheoryType theory = Parameters::GetInstance()->GetCurrentTheory();
14271432 // Validate theory
1428- if(theory == CNDO2 || theory == INDO || (theory == ZINDOS && groundStateIndex < targetStateIndex)){
1433+ if(theory == CNDO2 || theory == INDO ){
14291434 stringstream ss;
1430- ss << this->errorMessageNonValidExcitedStatesRPMD;
1431- ss << this->errorMessageElecState << targetStateIndex << endl;
1435+ ss << this->errorMessageNonValidTheoriesRPMD;
14321436 ss << this->errorMessageTheory << TheoryTypeStr(theory) << endl;
14331437 throw MolDSException(ss.str());
14341438 }
@@ -1439,7 +1443,7 @@ void InputParser::ValidateRpmdConditions(const Molecule& molecule) const{
14391443 this->ValidateCisConditions(molecule);
14401444 }
14411445 int numberExcitedStatesCIS = Parameters::GetInstance()->GetNumberExcitedStatesCIS();
1442- if(numberExcitedStatesCIS < targetStateIndex){
1446+ if(groundStateIndex < targetStateIndex && numberExcitedStatesCIS < targetStateIndex){
14431447 stringstream ss;
14441448 ss << this->errorMessageNonValidExcitedStatesRPMD;
14451449 ss << this->errorMessageElecState << targetStateIndex << endl;
@@ -1489,9 +1493,9 @@ void InputParser::ValidateOptimizationConditions(const Molecule& molecule) const
14891493 int targetStateIndex = Parameters::GetInstance()->GetElectronicStateIndexOptimization();
14901494 TheoryType theory = Parameters::GetInstance()->GetCurrentTheory();
14911495 // Validate theory
1492- if(theory == CNDO2 || theory == INDO || (theory == ZINDOS && groundStateIndex < targetStateIndex)){
1496+ if(theory == CNDO2 || theory == INDO ){
14931497 stringstream ss;
1494- ss << this->errorMessageNonValidExcitedStatesOptimization;
1498+ ss << this->errorMessageNonValidTheoriesOptimization;
14951499 ss << this->errorMessageElecState << targetStateIndex << endl;
14961500 ss << this->errorMessageTheory << TheoryTypeStr(theory) << endl;
14971501 throw MolDSException(ss.str());
@@ -1503,7 +1507,7 @@ void InputParser::ValidateOptimizationConditions(const Molecule& molecule) const
15031507 this->ValidateCisConditions(molecule);
15041508 }
15051509 int numberExcitedStatesCIS = Parameters::GetInstance()->GetNumberExcitedStatesCIS();
1506- if(numberExcitedStatesCIS < targetStateIndex){
1510+ if(groundStateIndex < targetStateIndex && numberExcitedStatesCIS < targetStateIndex){
15071511 stringstream ss;
15081512 ss << this->errorMessageNonValidExcitedStatesOptimization;
15091513 ss << this->errorMessageElecState << targetStateIndex << endl;
--- a/src/base/InputParser.h
+++ b/src/base/InputParser.h
@@ -35,12 +35,15 @@ private:
3535 void SetMessages();
3636 std::string errorMessageInputFileEmpty;
3737 std::string errorMessageNotFoundInputFile;
38+ std::string errorMessageNonValidTheoriesMD;
3839 std::string errorMessageNonValidExcitedStatesMD;
3940 std::string errorMessageNonValidExcitedStatesMC;
41+ std::string errorMessageNonValidTheoriesRPMD;
4042 std::string errorMessageNonValidExcitedStatesRPMD;
4143 std::string errorMessageNonValidTheoriesNASCO;
4244 std::string errorMessageNonValidNumberExcitedStatesNASCO;
4345 std::string errorMessageNonValidInitialElectronicStateNASCO;
46+ std::string errorMessageNonValidTheoriesOptimization;
4447 std::string errorMessageNonValidExcitedStatesOptimization;
4548 std::string errorMessageNonValidElectronicStateFrequencies;
4649 std::string errorMessageNonValidTheoryFrequencies;