• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisióndc72042c762cc6d937787403be32d7b3dc5a9293 (tree)
Tiempo2013-07-12 15:12:25
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

Inputmodule of MPI is deleted. #31588

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/mpi-cis@1387 1136aad2-a195-0410-b898-f5ea1d11b9d8

Cambiar Resumen

Diferencia incremental

--- a/doc/README.txt
+++ b/doc/README.txt
@@ -218,28 +218,6 @@ HOW TO WRITE INPUT:
218218 limit_heap 512
219219 MEMORY_END
220220
221- <MPI>
222- For settings of MPI usage, write options in MPI-directive.
223-
224- E.g.
225- MPI
226- (options)
227- MPI_END
228-
229- -options
230- "limit_message" is only prepared.
231- This parameter means that maximum size of data on a message passing is restricted to the value.
232- If data bigger than this value is needed to be transfered, the original data is splitted
233- to some chunks by MolDS automatically. Then, the chunks are transferred with sequential
234- multiple message passing. In general, users do not need to care about this parameter,
235- therefore, the default value that is 1000[MB] is reccomended to be used.
236- The value of this option should be written with the MByte unit if you want to set this option.
237-
238- E.g.
239- MPI
240- limit_message 512
241- MPI_END
242-
243221 <Frequencies (Normal modes analysis)>
244222 write frequencies-directive. Note taht not only the frequencies but also the normal modes are calculated.
245223
--- a/src/base/InputParser.cpp
+++ b/src/base/InputParser.cpp
@@ -147,10 +147,6 @@ void InputParser::SetMessages(){
147147 this->messageMemoryConditions = "\tMemory conditions:\n";
148148 this->messageMemoryLimitHeap = "\t\tHeap limit: ";
149149
150- // MPI
151- this->messageMpiConditions = "\tMPI conditions:\n";
152- this->messageMpiLimitMessage = "\t\tMessage limit: ";
153-
154150 // MD
155151 this->messageMdConditions = "\tMD conditions:\n";
156152 this->messageMdTotalSteps = "\t\tTotal steps: ";
@@ -329,11 +325,6 @@ void InputParser::SetMessages(){
329325 this->stringMemoryEnd = "memory_end";
330326 this->stringMemoryLimitHeap = "limit_heap";
331327
332- // MPI
333- this->stringMPI = "mpi";
334- this->stringMPIEnd = "mpi_end";
335- this->stringMPILimitMessage = "limit_message";
336-
337328 // MD
338329 this->stringMD = "md";
339330 this->stringMDEnd = "md_end";
@@ -1151,20 +1142,6 @@ int InputParser::ParseConditionsMemory(vector<string>* inputTerms, int parseInde
11511142 return parseIndex;
11521143 }
11531144
1154-int InputParser::ParseConditionsMPI(vector<string>* inputTerms, int parseIndex) const{
1155- parseIndex++;
1156- while((*inputTerms)[parseIndex].compare(this->stringMPIEnd) != 0){
1157- // max of heap
1158- if((*inputTerms)[parseIndex].compare(this->stringMPILimitMessage) == 0){
1159- double limitMessage = atof((*inputTerms)[parseIndex+1].c_str());
1160- Parameters::GetInstance()->SetLimitMessageMPI(limitMessage);
1161- parseIndex++;
1162- }
1163- parseIndex++;
1164- }
1165- return parseIndex;
1166-}
1167-
11681145 void InputParser::Parse(Molecule* molecule, int argc, char *argv[]) const{
11691146
11701147 this->OutputLog(messageStartParseInput);
@@ -1230,11 +1207,6 @@ void InputParser::Parse(Molecule* molecule, int argc, char *argv[]) const{
12301207 i = this->ParseConditionsMemory(&inputTerms, i);
12311208 }
12321209
1233- // MPI
1234- if(inputTerms[i].compare(this->stringMPI) == 0){
1235- i = this->ParseConditionsMPI(&inputTerms, i);
1236- }
1237-
12381210 // MD condition
12391211 if(inputTerms[i].compare(this->stringMD) == 0){
12401212 i = this->ParseConditionsMD(&inputTerms, i);
@@ -1296,7 +1268,6 @@ void InputParser::Parse(Molecule* molecule, int argc, char *argv[]) const{
12961268 this->OutputMolecularBasics(molecule);
12971269 this->OutputScfConditions();
12981270 this->OutputMemoryConditions();
1299- this->OutputMpiConditions();
13001271 if(Parameters::GetInstance()->RequiresCIS()){
13011272 this->OutputCisConditions();
13021273 }
@@ -1612,14 +1583,6 @@ void InputParser::OutputMemoryConditions() const{
16121583 this->OutputLog("\n");
16131584 }
16141585
1615-void InputParser::OutputMpiConditions() const{
1616- this->OutputLog(this->messageMpiConditions);
1617- this->OutputLog(boost::format("%s%e%s\n") % this->messageMpiLimitMessage.c_str()
1618- % Parameters::GetInstance()->GetLimitMessageMPI()
1619- % this->messageMB.c_str());
1620- this->OutputLog("\n");
1621-}
1622-
16231586 void InputParser::OutputCisConditions() const{
16241587 this->OutputLog(this->messageCisConditions);
16251588
--- a/src/base/InputParser.h
+++ b/src/base/InputParser.h
@@ -87,9 +87,6 @@ private:
8787 // Memory
8888 std::string messageMemoryConditions;
8989 std::string messageMemoryLimitHeap;
90- // MPI
91- std::string messageMpiConditions;
92- std::string messageMpiLimitMessage;
9390 // MD
9491 std::string messageMdConditions;
9592 std::string messageMdTotalSteps;
@@ -247,10 +244,6 @@ private:
247244 std::string stringMemory;
248245 std::string stringMemoryEnd;
249246 std::string stringMemoryLimitHeap;
250- // MPI
251- std::string stringMPI;
252- std::string stringMPIEnd;
253- std::string stringMPILimitMessage;
254247 // MD
255248 std::string stringMD;
256249 std::string stringMDEnd;
@@ -313,7 +306,6 @@ private:
313306 void OutputMolecularBasics(Molecule* molecule) const;
314307 void OutputScfConditions() const;
315308 void OutputMemoryConditions() const;
316- void OutputMpiConditions() const;
317309 void OutputCisConditions() const;
318310 void OutputMdConditions() const;
319311 void OutputMcConditions() const;
@@ -347,7 +339,6 @@ private:
347339 int ParseConditionsOptimization(std::vector<std::string>* inputTerms, int parseIndex) const;
348340 int ParseConditionsFrequencies(std::vector<std::string>* inputTerms, int parseIndex) const;
349341 int ParseConditionsMemory(std::vector<std::string>* inputTerms, int parseIndex) const;
350- int ParseConditionsMPI(std::vector<std::string>* inputTerms, int parseIndex) const;
351342 };
352343
353344 }
--- a/src/base/Parameters.cpp
+++ b/src/base/Parameters.cpp
@@ -176,8 +176,6 @@ void Parameters::SetDefaultValues(){
176176 this->requiresUnpairedPopCIS = false;
177177 // Memory
178178 this->limitHeapMemory = 256;
179- // MPI
180- this->limitMessageMPI = 1000;
181179 // MD
182180 this->electronicStateIndexMD = 0;
183181 this->totalStepsMD = 10;
@@ -372,15 +370,6 @@ void Parameters::SetLimitHeapMemory(double limitHeapMemory){
372370 this->limitHeapMemory = limitHeapMemory;
373371 }
374372
375-// methods for MPI
376-double Parameters::GetLimitMessageMPI() const{
377- return this->limitMessageMPI;
378-}
379-
380-void Parameters::SetLimitMessageMPI(double limitMessageMPI){
381- this->limitMessageMPI = limitMessageMPI;
382-}
383-
384373 // methods for MD
385374 int Parameters::GetElectronicStateIndexMD() const{
386375 return this->electronicStateIndexMD;
--- a/src/base/Parameters.h
+++ b/src/base/Parameters.h
@@ -146,9 +146,6 @@ public:
146146 // Memory
147147 double GetLimitHeapMemory() const;
148148 void SetLimitHeapMemory(double limitHeap);
149- // MPI
150- double GetLimitMessageMPI() const;
151- void SetLimitMessageMPI(double limitMessageMPI);
152149 // MD
153150 int GetElectronicStateIndexMD() const;
154151 void SetElectronicStateIndexMD(int electronicStateIndex);
@@ -293,8 +290,6 @@ private:
293290 bool requiresUnpairedPopCIS;
294291 // Memory
295292 double limitHeapMemory; // in [MB]
296- // MPI
297- double limitMessageMPI; // in [MB]
298293 // MD
299294 int electronicStateIndexMD;
300295 int totalStepsMD;