Revision | dc72042c762cc6d937787403be32d7b3dc5a9293 (tree) |
---|---|
Time | 2013-07-12 15:12:25 |
Author | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Inputmodule of MPI is deleted. #31588
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/mpi-cis@1387 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -218,28 +218,6 @@ HOW TO WRITE INPUT: | ||
218 | 218 | limit_heap 512 |
219 | 219 | MEMORY_END |
220 | 220 | |
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 | - | |
243 | 221 | <Frequencies (Normal modes analysis)> |
244 | 222 | write frequencies-directive. Note taht not only the frequencies but also the normal modes are calculated. |
245 | 223 |
@@ -147,10 +147,6 @@ void InputParser::SetMessages(){ | ||
147 | 147 | this->messageMemoryConditions = "\tMemory conditions:\n"; |
148 | 148 | this->messageMemoryLimitHeap = "\t\tHeap limit: "; |
149 | 149 | |
150 | - // MPI | |
151 | - this->messageMpiConditions = "\tMPI conditions:\n"; | |
152 | - this->messageMpiLimitMessage = "\t\tMessage limit: "; | |
153 | - | |
154 | 150 | // MD |
155 | 151 | this->messageMdConditions = "\tMD conditions:\n"; |
156 | 152 | this->messageMdTotalSteps = "\t\tTotal steps: "; |
@@ -329,11 +325,6 @@ void InputParser::SetMessages(){ | ||
329 | 325 | this->stringMemoryEnd = "memory_end"; |
330 | 326 | this->stringMemoryLimitHeap = "limit_heap"; |
331 | 327 | |
332 | - // MPI | |
333 | - this->stringMPI = "mpi"; | |
334 | - this->stringMPIEnd = "mpi_end"; | |
335 | - this->stringMPILimitMessage = "limit_message"; | |
336 | - | |
337 | 328 | // MD |
338 | 329 | this->stringMD = "md"; |
339 | 330 | this->stringMDEnd = "md_end"; |
@@ -1151,20 +1142,6 @@ int InputParser::ParseConditionsMemory(vector<string>* inputTerms, int parseInde | ||
1151 | 1142 | return parseIndex; |
1152 | 1143 | } |
1153 | 1144 | |
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 | - | |
1168 | 1145 | void InputParser::Parse(Molecule* molecule, int argc, char *argv[]) const{ |
1169 | 1146 | |
1170 | 1147 | this->OutputLog(messageStartParseInput); |
@@ -1230,11 +1207,6 @@ void InputParser::Parse(Molecule* molecule, int argc, char *argv[]) const{ | ||
1230 | 1207 | i = this->ParseConditionsMemory(&inputTerms, i); |
1231 | 1208 | } |
1232 | 1209 | |
1233 | - // MPI | |
1234 | - if(inputTerms[i].compare(this->stringMPI) == 0){ | |
1235 | - i = this->ParseConditionsMPI(&inputTerms, i); | |
1236 | - } | |
1237 | - | |
1238 | 1210 | // MD condition |
1239 | 1211 | if(inputTerms[i].compare(this->stringMD) == 0){ |
1240 | 1212 | i = this->ParseConditionsMD(&inputTerms, i); |
@@ -1296,7 +1268,6 @@ void InputParser::Parse(Molecule* molecule, int argc, char *argv[]) const{ | ||
1296 | 1268 | this->OutputMolecularBasics(molecule); |
1297 | 1269 | this->OutputScfConditions(); |
1298 | 1270 | this->OutputMemoryConditions(); |
1299 | - this->OutputMpiConditions(); | |
1300 | 1271 | if(Parameters::GetInstance()->RequiresCIS()){ |
1301 | 1272 | this->OutputCisConditions(); |
1302 | 1273 | } |
@@ -1612,14 +1583,6 @@ void InputParser::OutputMemoryConditions() const{ | ||
1612 | 1583 | this->OutputLog("\n"); |
1613 | 1584 | } |
1614 | 1585 | |
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 | - | |
1623 | 1586 | void InputParser::OutputCisConditions() const{ |
1624 | 1587 | this->OutputLog(this->messageCisConditions); |
1625 | 1588 |
@@ -87,9 +87,6 @@ private: | ||
87 | 87 | // Memory |
88 | 88 | std::string messageMemoryConditions; |
89 | 89 | std::string messageMemoryLimitHeap; |
90 | - // MPI | |
91 | - std::string messageMpiConditions; | |
92 | - std::string messageMpiLimitMessage; | |
93 | 90 | // MD |
94 | 91 | std::string messageMdConditions; |
95 | 92 | std::string messageMdTotalSteps; |
@@ -247,10 +244,6 @@ private: | ||
247 | 244 | std::string stringMemory; |
248 | 245 | std::string stringMemoryEnd; |
249 | 246 | std::string stringMemoryLimitHeap; |
250 | - // MPI | |
251 | - std::string stringMPI; | |
252 | - std::string stringMPIEnd; | |
253 | - std::string stringMPILimitMessage; | |
254 | 247 | // MD |
255 | 248 | std::string stringMD; |
256 | 249 | std::string stringMDEnd; |
@@ -313,7 +306,6 @@ private: | ||
313 | 306 | void OutputMolecularBasics(Molecule* molecule) const; |
314 | 307 | void OutputScfConditions() const; |
315 | 308 | void OutputMemoryConditions() const; |
316 | - void OutputMpiConditions() const; | |
317 | 309 | void OutputCisConditions() const; |
318 | 310 | void OutputMdConditions() const; |
319 | 311 | void OutputMcConditions() const; |
@@ -347,7 +339,6 @@ private: | ||
347 | 339 | int ParseConditionsOptimization(std::vector<std::string>* inputTerms, int parseIndex) const; |
348 | 340 | int ParseConditionsFrequencies(std::vector<std::string>* inputTerms, int parseIndex) const; |
349 | 341 | int ParseConditionsMemory(std::vector<std::string>* inputTerms, int parseIndex) const; |
350 | - int ParseConditionsMPI(std::vector<std::string>* inputTerms, int parseIndex) const; | |
351 | 342 | }; |
352 | 343 | |
353 | 344 | } |
@@ -176,8 +176,6 @@ void Parameters::SetDefaultValues(){ | ||
176 | 176 | this->requiresUnpairedPopCIS = false; |
177 | 177 | // Memory |
178 | 178 | this->limitHeapMemory = 256; |
179 | - // MPI | |
180 | - this->limitMessageMPI = 1000; | |
181 | 179 | // MD |
182 | 180 | this->electronicStateIndexMD = 0; |
183 | 181 | this->totalStepsMD = 10; |
@@ -372,15 +370,6 @@ void Parameters::SetLimitHeapMemory(double limitHeapMemory){ | ||
372 | 370 | this->limitHeapMemory = limitHeapMemory; |
373 | 371 | } |
374 | 372 | |
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 | - | |
384 | 373 | // methods for MD |
385 | 374 | int Parameters::GetElectronicStateIndexMD() const{ |
386 | 375 | return this->electronicStateIndexMD; |
@@ -146,9 +146,6 @@ public: | ||
146 | 146 | // Memory |
147 | 147 | double GetLimitHeapMemory() const; |
148 | 148 | void SetLimitHeapMemory(double limitHeap); |
149 | - // MPI | |
150 | - double GetLimitMessageMPI() const; | |
151 | - void SetLimitMessageMPI(double limitMessageMPI); | |
152 | 149 | // MD |
153 | 150 | int GetElectronicStateIndexMD() const; |
154 | 151 | void SetElectronicStateIndexMD(int electronicStateIndex); |
@@ -293,8 +290,6 @@ private: | ||
293 | 290 | bool requiresUnpairedPopCIS; |
294 | 291 | // Memory |
295 | 292 | double limitHeapMemory; // in [MB] |
296 | - // MPI | |
297 | - double limitMessageMPI; // in [MB] | |
298 | 293 | // MD |
299 | 294 | int electronicStateIndexMD; |
300 | 295 | int totalStepsMD; |