VertexInfo.h 2.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  crystal growth group                                                  ==
// ==                                                                        ==
// ==  Stiftung caesar                                                       ==
// ==  Ludwig-Erhard-Allee 2                                                 ==
// ==  53175 Bonn                                                            ==
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
// ==  http://www.caesar.de/cg/AMDiS                                         ==
// ==                                                                        ==
// ============================================================================

/** \file VertexInfo.h */

#ifndef AMDIS_VERTEXINFO_H
#define AMDIS_VERTEXINFO_H

#include "FixVec.h"

namespace AMDiS {
28
  
Thomas Witkowski's avatar
Thomas Witkowski committed
29
  /// Stores coordinates and output index for one vertex.
30
  class VertexInfo 
31 32
  {
  public:
Thomas Witkowski's avatar
Thomas Witkowski committed
33
    /// Coordinates for this vertex.
34 35
    WorldVector<double> coords;
    
Thomas Witkowski's avatar
Thomas Witkowski committed
36
    /// Index for the output file.
37 38
    int outputIndex;
    
Thomas Witkowski's avatar
Thomas Witkowski committed
39 40 41
    /// Used to check, whether coords are already stored for a given dof.
    bool operator==(const WorldVector<double>& c) 
    {
42
      return (c == coords);
Thomas Witkowski's avatar
Thomas Witkowski committed
43
    }
44
    
Thomas Witkowski's avatar
Thomas Witkowski committed
45 46 47
    /// Used to check, whether coords are already stored for a given dof.
    bool operator!=(const WorldVector<double>& c) 
    {
48
      return (c != coords);
Thomas Witkowski's avatar
Thomas Witkowski committed
49
    }
50
  };
51 52 53
}

#endif