Commit 3cb4fbfd authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Implementing the mesh integrity checker.

parent a516513b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -28,6 +28,10 @@ else()
    AddCompilerFlag( "-O3 -DNDEBUG " )
endif()

if( WITH_PROFILING STREQUAL "yes" )
   AddCompilerFlag( "-pg" )
endif()   

if( WITH_TEMPLATE_EXPLICIT_INSTANTIATION STREQUAL "yes" )
   AddCompilerFlag( "-DTEMPLATE_EXPLICIT_INSTANTIATION " )
endif()   
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ WITH_CUDA=no
WITH_CUSPARSE=no
CUDA_ARCHITECTURE=2.0
TEMPLATE_EXPLICIT_INSTANTIATION=yes
WITH_PROFILING=yes
#VERBOSE="VERBOSE=1"

CMAKE="cmake"
@@ -27,6 +28,7 @@ fi
cd Debug
${CMAKE} .. -DCMAKE_BUILD_TYPE=Debug \
            -DCMAKE_INSTALL_PREFIX=${HOME}/local \
            -DWITH_PROFILING=${WITH_PROFILING} \
            -DCUDA_ARCHITECTURE=${CUDA_ARCHITECTURE} \
            -DWITH_CUDA=${WITH_CUDA} \
            -DWITH_CUSPARSE=${WITH_CUSPARSE} \
@@ -38,6 +40,7 @@ make -j${CPUS} install

cd ../Release
${CMAKE} .. -DCMAKE_INSTALL_PREFIX=${HOME}/local \
            -DWITH_PROFILING=${WITH_PROFILING} \
            -DCUDA_ARCHITECTURE=${CUDA_ARCHITECTURE} \
            -DWITH_CUDA=${WITH_CUDA} \
            -DWITH_CUSPARSE=${WITH_CUSPARSE} \
+4 −1
Original line number Diff line number Diff line
@@ -24,13 +24,15 @@
 * It means that each mesh entity stores its index in its
 * mesh storage layer.
 */
template< int WorldDimensions,
template< typename Cell,
          int WorldDimensions = Cell::dimensions,
          typename Real = double,
          typename GlobalIndex = int,
          typename LocalIndex = GlobalIndex,
          typename Id = void >
struct tnlMeshConfigBase
{
   typedef Cell        CellTag;
   typedef Real        RealType;
   typedef GlobalIndex GlobalIndexType;
   typedef LocalIndex  LocalIndexType;
@@ -43,6 +45,7 @@ struct tnlMeshConfigBase
      return tnlString( "tnlMeshConfigBase< >");
   };

   tnlStaticAssert( WorldDimensions >= Cell::dimensions, "The number of the cell dimensions cannot be larger than the world dimension." );
};

/****
+3 −6
Original line number Diff line number Diff line
@@ -26,9 +26,6 @@ template< typename ConfigTag >
class tnlMesh : public tnlObject,
                public tnlMeshStorageLayers< ConfigTag >
{
   //template<typename, typename, typename> friend class InitializerLayer;
   //friend class IOReader<ConfigTag>;

   typedef tnlMeshStorageLayers< ConfigTag >                BaseType;

   public:
+34 −0
Original line number Diff line number Diff line
/***************************************************************************
                          tnlMeshEntityIntegrityChecker.h  -  description
                             -------------------
    begin                : Mar 20, 2014
    copyright            : (C) 2014 by Tomas Oberhuber
    email                : tomas.oberhuber@fjfi.cvut.cz
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef TNLMESHENTITYINTEGRITYCHECKER_H_
#define TNLMESHENTITYINTEGRITYCHECKER_H_

template< typename MeshEntity >
class tnlMeshEntityIntegrityChecker
{
   public:

      static bool checkEntity( const MeshEntity& entity )
      {
         return true;
      }

};


#endif /* TNLMESHENTITYINTEGRITYCHECKER_H_ */
Loading