Trilinos based (stochastic) FEM solvers
main.cpp
Go to the documentation of this file.
1
#include "Epetra_ConfigDefs.h"
2
#ifdef HAVE_MPI
3
#include "mpi.h"
4
#include "Epetra_MpiComm.h"
5
#else
6
#include "Epetra_SerialComm.h"
7
#endif
8
9
#include "Teuchos_CommandLineProcessor.hpp"
10
#include "Teuchos_StandardCatchMacros.hpp"
11
#include "Teuchos_ParameterList.hpp"
12
#include "Teuchos_XMLParameterListCoreHelpers.hpp"
13
14
int
main
(
int
argc,
char
*argv[]){
15
16
#ifdef HAVE_MPI
17
MPI_Init(&argc, &argv);
18
Epetra_MpiComm Comm(MPI_COMM_WORLD);
19
#else
20
Epetra_SerialComm Comm;
21
#endif
22
23
std::cout <<
"Hello from "
<< Comm.MyPID() <<
" out of "
<< Comm.NumProc() <<
"\n"
;
24
25
#ifdef HAVE_MPI
26
MPI_Finalize();
27
#endif
28
return
0;
29
30
}
main
int main(int argc, char *argv[])
Definition:
main.cpp:23
examples
helloworld
main.cpp
Generated by
1.8.13