LifeV
lifev/core/testsuite/fe_function/main.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
29
Simple test for FEField and FEFunction
30
31
*/
32
33
34
/**
35
@file main.hpp
36
@author A. Fumagalli <alessio.fumagalli@mail.polimi.it>
37
@date 2011-05-02
38
*/
39
40
41
// ===================================================
42
//! Includes
43
// ===================================================
44
45
46
#
include
<
Epetra_ConfigDefs
.
h
>
47
#
ifdef
EPETRA_MPI
48
#
include
<
mpi
.
h
>
49
#
include
<
Epetra_MpiComm
.
h
>
50
#
else
51
#
include
<
Epetra_SerialComm
.
h
>
52
#
endif
53
54
55
#
include
<
lifev
/
core
/
LifeV
.
hpp
>
56
57
#
include
"fefct.hpp"
58
59
// ===================================================
60
//! Namespaces
61
// ===================================================
62
using
namespace
LifeV;
63
64
// ===================================================
65
//! Main
66
// ===================================================
67
int
main
(
int
argc,
char
** argv)
68
{
69
70
#
ifdef
HAVE_MPI
71
72
MPI_Init ( &argc, &argv );
73
74
std::cout <<
"MPI Initialization"
<< std::endl;
75
76
#
endif
77
78
// Tolerance between the error and the errorKnown
79
const
LifeV::Real tolerance ( 1e-8 );
80
81
fefct
Fefct
(
argc
,
argv
)
;
82
83
// Error of the problem
84
const
LifeV::Real error = Fefct.run();
85
86
#
ifdef
HAVE_MPI
87
88
MPI_Finalize();
89
90
std::cout <<
"MPI Finalization"
<< std::endl;
91
92
#
endif
93
94
if
( error > tolerance )
95
{
96
return
( EXIT_FAILURE );
97
}
98
else
99
{
100
return
( EXIT_SUCCESS );
101
}
102
}
fefct
Includes.
Definition:
fefct.hpp:62
main
int main(int argc, char **argv)
Definition:
lifev/structure/testsuite/evaluateNodalETA/main.cpp:921
fefct::fefct
fefct(int argc, char **argv)
Constructors.
Definition:
fefct.cpp:75
lifev-release-doc
lifev
core
testsuite
fe_function
main.cpp
Generated on Wed Mar 7 2018 19:43:54 for LifeV by
1.8.13