LifeV
lifev/navier_stokes/testsuite/exporter_ensight_to_hdf5/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  \file main.cpp
28  \author Simone Deparis <simone.deparis@epfl.ch>
29  \date 2008-08-11
30  */
31 
32 
33 #include <Epetra_ConfigDefs.h>
34 #ifdef EPETRA_MPI
35 #include <mpi.h>
36 #include <Epetra_MpiComm.h>
37 #else
38 #include <Epetra_SerialComm.h>
39 #endif
40 
41 
42 #include <lifev/core/LifeV.hpp>
43 
44 #include "ensightToHdf5.hpp"
45 
46 
47 using namespace LifeV;
48 
49 
50 int
51 main ( int argc, char** argv )
52 {
53 
54 #ifdef HAVE_MPI
55  MPI_Init (&argc, &argv);
56  Epetra_MpiComm Comm (MPI_COMM_WORLD);
57  if ( Comm.MyPID() == 0 )
58  {
59  std::cout << "% using MPI" << std::endl;
60  }
61 #else
62  Epetra_SerialComm Comm;
63  cout << "% using serial Version" << endl;
64 #endif
65 
66  //**************** cylinder
67  // MPI_Init(&argc,&argv);
68 
69  EnsightToHdf5 es ( argc, argv );
70  es.run();
71 
72 #ifdef HAVE_MPI
73  MPI_Finalize();
74 #endif
75  return ( EXIT_SUCCESS );
76 }
void updateInverseJacobian(const UInt &iQuadPt)
int main(int argc, char **argv)
Definition: dummy.cpp:5