LifeV
ETmain.cpp
Go to the documentation of this file.
1
//@HEADER
2
/*
3
*******************************************************************************
4
5
Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6
Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7
8
This file is part of LifeV.
9
10
LifeV is free software; you can redistribute it and/or modify
11
it under the terms of the GNU Lesser General Public License as published by
12
the Free Software Foundation, either version 3 of the License, or
13
(at your option) any later version.
14
15
LifeV is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
Lesser General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public License
21
along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22
23
*******************************************************************************
24
*/
25
//@HEADER
26
27
/*!
28
@file
29
@brief
30
31
@author Matteo Pozzoli <matteo1.pozzoli@mail.polimi.it>
32
@author Claudia Colciago <claudia.colciago@epfl.ch>
33
@date 08-03-2011
34
*/
35
36
// Tell the compiler to ignore specific kind of warnings:
37
#
pragma
GCC
diagnostic
ignored
"-Wunused-variable"
38
#
pragma
GCC
diagnostic
ignored
"-Wunused-parameter"
39
40
#
include
<
Epetra_ConfigDefs
.
h
>
41
#
ifdef
EPETRA_MPI
42
#
include
<
mpi
.
h
>
43
#
include
<
Epetra_MpiComm
.
h
>
44
#
else
45
#
include
<
Epetra_SerialComm
.
h
>
46
#
endif
47
48
//Tell the compiler to restore the warning previously silented
49
// #pragma GCC diagnostic warning "-Wunused-variable"
50
// #pragma GCC diagnostic warning "-Wunused-parameter"
51
52
#
include
"ETRobinMembraneSolver.hpp"
53
54
#
include
<
lifev
/
core
/
LifeV
.
hpp
>
55
#
include
<
lifev
/
core
/
algorithm
/
PreconditionerIfpack
.
hpp
>
56
#
include
<
lifev
/
core
/
algorithm
/
PreconditionerML
.
hpp
>
57
58
#
include
"ud_functions.hpp"
59
60
61
using
namespace
LifeV;
62
63
std
::
set
<
UInt
>
parseList
(
const
std
::
string
&
list
)
64
{
65
std::string stringList = list;
66
std::set<UInt> setList;
67
if
( list ==
""
)
68
{
69
return
setList;
70
}
71
size_t commaPos = 0;
72
while
( commaPos != std::string::npos )
73
{
74
commaPos = stringList.find (
","
);
75
setList.insert ( atoi ( stringList.substr ( 0, commaPos ).c_str() ) );
76
stringList = stringList.substr ( commaPos + 1 );
77
}
78
setList.insert ( atoi ( stringList.c_str() ) );
79
return
setList;
80
}
81
82
int
83
main
(
int
argc,
char
** argv )
84
{
85
#
ifdef
HAVE_MPI
86
MPI_Init (&argc, &argv);
87
#
endif
88
89
//**************** cylinder
90
// MPI_Init(&argc,&argv);
91
92
ETRobinMembraneSolver
cyl
(
argc
,
argv
)
;
93
cyl
.
run
(
)
;
94
95
#
ifdef
HAVE_MPI
96
MPI_Finalize();
97
#
endif
98
return
( EXIT_SUCCESS );
99
}
LifeV::ETRobinMembraneSolver::run
void run()
run test
Definition:
ETRobinMembraneSolver.cpp:171
parseList
std::set< UInt > parseList(const std::string &list)
Definition:
lifev/structure/testsuite/evaluateNodalETA/main.cpp:81
LifeV::ETRobinMembraneSolver::ETRobinMembraneSolver
ETRobinMembraneSolver(int argc, char **argv)
Definition:
ETRobinMembraneSolver.cpp:114
main
int main(int argc, char **argv)
Definition:
lifev/structure/testsuite/evaluateNodalETA/main.cpp:921
LifeV::ETRobinMembraneSolver
Definition:
ETRobinMembraneSolver.hpp:78
lifev-release-doc
lifev
navier_stokes
examples
ETpseudo_fsi
ETmain.cpp
Generated on Wed Mar 7 2018 19:41:47 for LifeV by
1.8.13