LifeV
OpenMPParameters.hpp
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
28  @brief Class that handles setting OpenMP parameters
29 
30  @date 2013-03
31  @author Radu Popescu <radu.popescu@epfl.ch>
32 
33  @maintainer Radu Popescu <radu.popescu@epfl.ch>
34 */
35 
36 #ifndef OPENMP_PARAMETERS_H
37 #define OPENMP_PARAMETERS_H 1
38 
39 #ifdef _OPENMP
40 #include <omp.h>
41 #endif
42 
43 namespace LifeV
44 {
45 
46 //! OpenMP parameter class
48 {
49  // Default constructor
51 
52  // Apply OpenMP parameters
53  void apply();
54  // Apply OpenMP parameters
56 
57  // Data
60 #ifdef _OPENMP
62 #endif
63  int chunkSize;
64 };
65 
66 } // namespace LifeV
67 
68 #endif // OPENMP_PARAMETERS_H
void updateInverseJacobian(const UInt &iQuadPt)
OpenMP parameter class.