PlasCom2
1.0
XPACC Multi-physics simluation application
PC2Main.C
Go to the documentation of this file.
1
#include "
PlasCom2.H
"
12
13
int
main
(
int
argc,
char
*argv[])
14
{
15
int
provided;
16
17
// Make the MPI runtime aware that we might want to run OpenMP threads,
18
// but will do MPI calls only from the master thread.
19
MPI_Init_thread(&argc, &argv, MPI_THREAD_FUNNELED, &provided);
20
assert(provided == MPI_THREAD_FUNNELED);
21
22
// As HDF5 might run MPI functions as part of its shutdown, we can not call
23
// MPI_Finalize from main directly.
24
atexit((
void
(*)())MPI_Finalize);
25
26
MPI_Comm globalCommunicator = MPI_COMM_WORLD;
27
plascom2::application
simulationApplication(argc,argv,globalCommunicator);
28
int
returnValue =
application::ApplicationDriver
(simulationApplication);
29
30
return
(returnValue);
31
}
application::ApplicationDriver
int ApplicationDriver(ApplicationType &simulationApplication)
Definition:
include/Application.H:18
PlasCom2.H
main
int main(int argc, char *argv[])
Definition:
PC2Main.C:13
plascom2::application
Definition:
PlasCom2.H:40
Archive
PlasCom2
src
PC2Main.C
Generated on Mon Apr 30 2018 11:08:17 for PlasCom2 by
1.8.13