Last change
on this file since 20500 was 20500, checked in by Mathieu Morlighem, 9 years ago |
merged trunk-jpl and trunk for revision 20497
|
File size:
923 bytes
|
Line | |
---|
1 | 51a54,76
|
---|
2 | > /** This constructor is provided for the ISSM software, to run serial
|
---|
3 | > * Dakota in a parallel MPI ring: */
|
---|
4 | > ParallelLibrary::ParallelLibrary(char* serial_mode):
|
---|
5 | > mpiManager(dummy_mpi_mgr), programOptions(dummy_prg_opt),
|
---|
6 | > outputManager(dummy_out_mgr), dummyFlag(true), outputTimings(false)
|
---|
7 | > {
|
---|
8 | > initialize_timers();
|
---|
9 | >
|
---|
10 | > // do not initialize MPI. Get worldRank/worldSize if available
|
---|
11 | > ParallelLevel pl;
|
---|
12 | > #ifdef HAVE_MPI // mpi available, we still don't want to run in parallel for Dakota!
|
---|
13 | > pl.serverIntraComm = MPI_COMM_NULL;
|
---|
14 | > Cout << "Running Dakota 6.1 MPI executable in serial mode on CPU 0 for ISSM." << std::endl;
|
---|
15 | > #else // mpi not available
|
---|
16 | > pl.serverIntraComm = MPI_COMM_NULL;
|
---|
17 | > Cout << "Running Dakota 6.1 serial executable in serial mode for ISSM." << std::endl;
|
---|
18 | > #endif // HAVE_MPI
|
---|
19 | >
|
---|
20 | > parallelLevels.push_back(pl);
|
---|
21 | > increment_parallel_configuration();
|
---|
22 | > }
|
---|
23 | >
|
---|
24 | >
|
---|
Note:
See
TracBrowser
for help on using the repository browser.