LifeV
lifev/navier_stokes/testsuite/RossEthierSteinman/main.cpp
Go to the documentation of this file.
1
/* -*- mode: c++ -*-
2
3
This file is part of the LifeV library.
4
Copyright (C) 2010 EPFL
5
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2.1 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19
USA
20
*/
21
/**
22
\file main.cpp
23
\author Davide Forti <davide.forti@epfl.ch>
24
\date 2014-02-06
25
*/
26
27
28
#
include
<
Epetra_ConfigDefs
.
h
>
29
#
ifdef
EPETRA_MPI
30
#
include
<
mpi
.
h
>
31
#
include
<
Epetra_MpiComm
.
h
>
32
#
else
33
#
include
<
Epetra_SerialComm
.
h
>
34
#
endif
35
36
37
#
include
<
lifev
/
core
/
LifeV
.
hpp
>
38
39
#
include
<
lifev
/
core
/
algorithm
/
PreconditionerIfpack
.
hpp
>
40
#
include
<
lifev
/
core
/
algorithm
/
PreconditionerML
.
hpp
>
41
42
#
include
"navier_stokes.hpp"
43
44
using
namespace
LifeV;
45
46
int
47
main
(
int
argc,
char
** argv )
48
{
49
50
bool
verbose (
false
);
51
#
ifdef
HAVE_MPI
52
MPI_Init (&argc, &argv);
53
boost::shared_ptr<Epetra_Comm> Comm (
new
Epetra_MpiComm (MPI_COMM_WORLD) );
54
if
( Comm->MyPID() == 0 )
55
{
56
verbose =
true
;
57
}
58
#
else
59
boost::shared_ptr<Epetra_Comm> Comm (
new
Epetra_SerialComm);
60
verbose =
true
;
61
#
endif
62
63
NavierStokes ns ( argc, argv, Comm,
"data"
,
"result"
);
64
65
ns.run();
66
67
#
ifdef
HAVE_MPI
68
if
(verbose)
69
{
70
std::cout <<
"MPI Finalization"
<< std::endl;
71
}
72
MPI_Finalize();
73
#
endif
74
return
( EXIT_SUCCESS );
75
}
main
int main(int argc, char **argv)
Definition:
lifev/structure/testsuite/evaluateNodalETA/main.cpp:921
lifev-release-doc
lifev
navier_stokes
testsuite
RossEthierSteinman
main.cpp
Generated on Wed Mar 7 2018 19:46:16 for LifeV by
1.8.13