Changeset 16020
- Timestamp:
- 08/29/13 15:29:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/dakota/configs/5.3.1/ParallelLibrary.cpp.patch
r15245 r16020 3 3 133a135 4 4 > initialized=0; //we run serially all the time! 5 141a144,17 65 141a144,171 6 6 > /** This constructor is provided for the ISSM software, to run serial 7 7 > * Dakota in a parallel MPI ring: */ 8 8 > ParallelLibrary::ParallelLibrary(char* serial_mode): 9 > worldRank(0), worldSize(1),9 > dakotaMPIComm(MPI_COMM_WORLD), worldRank(0), worldSize(1), 10 10 > mpirunFlag(false), ownMPIFlag(false), dummyFlag(false), 11 11 > stdOutputToFile(false), stdErrorToFile(false), checkFlag(false), 12 12 > preRunFlag(true), runFlag(true), postRunFlag(true), userModesFlag(false), 13 > startClock(0), stopRestartEvals(0),13 > outputTimings(true), startClock(0), stopRestartEvals(0), 14 14 > currPLIter(parallelLevels.end()), currPCIter(parallelConfigurations.end()) 15 15 > { 16 > startClock = clock(); 17 > #ifdef DAKOTA_UTILIB 18 > utilib::exception_mngr::set_mode(utilib::exception_mngr::Abort); 19 > startCPUTime = CPUSeconds(); // see utilib/src/sys/seconds.cpp 20 > startWCTime = WallClockSeconds(); // see utilib/src/sys/seconds.cpp 21 > #endif // DAKOTA_UTILIB 16 > initialize_timers(); 22 17 > 23 18 > // do not initialize MPI. Get worldRank/worldSize if available … … 25 20 > #ifdef HAVE_MPI // mpi available, we still don't want to run in parallel for Dakota! 26 21 > pl.serverIntraComm = MPI_COMM_NULL; 27 > Cout << "Running Dakota 5.3.1 MPI executable in serial mode on CPU 0 for ISSM." ;22 > Cout << "Running Dakota 5.3.1 MPI executable in serial mode on CPU 0 for ISSM." << std::endl; 28 23 > #else // mpi not available 29 24 > pl.serverIntraComm = MPI_COMM_NULL; 30 > Cout << "Running Dakota 5.3.1 serial executable in serial mode for ISSM. \n";25 > Cout << "Running Dakota 5.3.1 serial executable in serial mode for ISSM." << std::endl; 31 26 > #endif // HAVE_MPI 32 27 > … … 37 32 > 38 33 > 39 1536a15 7234 1536a1567 40 35 > initialized=0; //we run serially all the time!
Note:
See TracChangeset
for help on using the changeset viewer.