LifeV
test_meshentitycontainer.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 Test MeshEntityContainer class
30 
31  @author
32  @contributor
33  @maintainer
34 
35  @date 00-00-0000
36 
37  Test if the template class MeshEntityContainer compiles and works correctly.
38  */
39 
40 // ===================================================
41 //! Includes
42 // ===================================================
43 
44 #include <Epetra_ConfigDefs.h>
45 #ifdef HAVE_MPI
46 #include <mpi.h>
47 #endif
48 
49 
50 
51 #include<iostream>
52 
53 #include <lifev/core/mesh/MeshEntityContainer.hpp>
54 
55 int
56 main (int argc, char** argv)
57 {
58  using namespace LifeV;
59 
60 #ifdef HAVE_MPI
61  MPI_Init (&argc, &argv);
62  std::cout << "MPI Initialization" << std::endl;
63 #endif
64 
65  MeshEntityContainer<int> a;
66  MeshEntityContainer<float> b (10);
67 
68  for (MeshEntityContainer<float>::iterator p = b.begin(); p != b.end(); ++p)
69  {
70  *p = 10.0;
71  }
72  std::cout << b (4) << "\n";
73 
74 #ifdef HAVE_MPI
75  MPI_Finalize();
76  std::cout << "MPI Finalization" << std::endl;
77 #endif
78 
79  return ( EXIT_SUCCESS );
80 }
void updateInverseJacobian(const UInt &iQuadPt)
int main(int argc, char **argv)
Definition: dummy.cpp:5