LifeV
LifeV.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
28  @brief definition of nDimensions
29 
30  @author Simone Deparis <simone.deparis@epfl.ch>
31 
32  @date 2009-12-09
33 
34  */
35 
36 #include <lifev/core/LifeV.hpp>
37 
38 namespace LifeV
39 {
40 void Flag::showMe ( flag_Type const& flag, std::ostream& out )
41 {
42  out << "Flag -- ";
43  flag_Type bit = 0x01;
44  for ( UInt i = 0; i < sizeof ( flag_Type ) * 8; i++ )
45  {
46  out << static_cast<bool> ( flag & bit );
47  bit <<= 1;
48  }
49  out << std::endl;
50 }
51 const UInt nDimensions (NDIM);
52 } //end namespace LifeV
uint32_type flag_Type
bit-flag with up to 32 different flags
Definition: LifeV.hpp:197
void updateInverseJacobian(const UInt &iQuadPt)
#define NDIM
Definition: LifeV.hpp:265
void showMe(flag_Type const &flag, std::ostream &out=std::cout)
showMe method to print out flag status the flag is converted to its binary form ( right -> left corre...
Definition: LifeV.cpp:40
flag related free functions and functors
Definition: LifeV.hpp:203
const UInt nDimensions(NDIM)
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191