Loading CMakeLists.txt +4 −0 Original line number Diff line number Diff line Loading @@ -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() Loading install +3 −0 Original line number Diff line number Diff line Loading @@ -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" Loading @@ -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} \ Loading @@ -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} \ Loading src/mesh/config/tnlMeshConfigBase.h +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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." ); }; /**** Loading src/mesh/tnlMesh.h +3 −6 Original line number Diff line number Diff line Loading @@ -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: Loading src/mesh/tnlMeshEntityIntegrityChecker.h 0 → 100644 +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
CMakeLists.txt +4 −0 Original line number Diff line number Diff line Loading @@ -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() Loading
install +3 −0 Original line number Diff line number Diff line Loading @@ -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" Loading @@ -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} \ Loading @@ -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} \ Loading
src/mesh/config/tnlMeshConfigBase.h +4 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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." ); }; /**** Loading
src/mesh/tnlMesh.h +3 −6 Original line number Diff line number Diff line Loading @@ -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: Loading
src/mesh/tnlMeshEntityIntegrityChecker.h 0 → 100644 +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_ */