Loading CMakeLists.txt +4 −0 Original line number Diff line number Diff line Loading @@ -13,11 +13,13 @@ include( OptimizeForArchitecture ) # if( CMAKE_BUILD_TYPE STREQUAL "Debug") set( PROJECT_BUILD_PATH ${PROJECT_SOURCE_DIR}/Debug/src ) set( PROJECT_TESTS_PATH ${PROJECT_SOURCE_DIR}/Debug/tests ) set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Debug/lib ) set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Debug/bin ) set( debugExt -dbg ) else() set( PROJECT_BUILD_PATH ${PROJECT_SOURCE_DIR}/Release/src ) set( PROJECT_TESTS_PATH ${PROJECT_SOURCE_DIR}/Release/tests ) set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Release/lib) set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Release/bin) #set( CXX_OPTIMIZE_FLAGS "-O3") Loading Loading @@ -203,6 +205,8 @@ ENABLE_TESTING() INCLUDE( Dart ) set( configDirectory \"${CMAKE_INSTALL_PREFIX}/share/tnl-${tnlVersion}/\") set( sourceDirectory \"${PROJECT_SOURCE_DIR}/\" ) set( testsDirectory \"${PROJECT_TESTS_DIR}/\" ) CONFIGURE_FILE( "tnlConfig.h.in" "${PROJECT_BUILD_PATH}/tnlConfig.h" ) INSTALL( FILES ${PROJECT_BUILD_PATH}/tnlConfig.h DESTINATION include/tnl-${tnlVersion} ) Loading buildAll +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ TARGET=TNL INSTALL_PREFIX=${HOME}/local WITH_CUDA=yes WITH_CUDA=no CUDA_ARCHITECTURE=2.0 VERBOSE=1 Loading src/mesh/CMakeLists.txt +14 −1 Original line number Diff line number Diff line INCLUDE_DIRECTORIES( common config detail global io topology ) ADD_SUBDIRECTORY( common ) ADD_SUBDIRECTORY( config ) ADD_SUBDIRECTORY( detail ) ADD_SUBDIRECTORY( global ) ADD_SUBDIRECTORY( io ) ADD_SUBDIRECTORY( topology ) SET( headers tnlDistributedGrid.h tnlGrid.h ) tnlGrid.h config.h information.h mesh.h traversal.h ) #SET( libtnlmeshincludedir ${TNL_INCLUDE_DIR}/mesh ) #SET( libtnlmeshinclude_HEADERS ${headers} ) Loading src/mesh/common/CMakeLists.txt 0 → 100644 +3 −0 Original line number Diff line number Diff line SET( headers common.h ) INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/mesh/common ) No newline at end of file src/mesh/common/common.h 0 → 100644 +37 −0 Original line number Diff line number Diff line #if !defined(_COMMON_H_) #define _COMMON_H_ namespace implementation { typedef int DimensionType; template<DimensionType dimension> class DimTag { public: enum { value = dimension }; typedef DimTag<dimension - 1> Previous; }; // Tags denoting whether certain mesh entities (by context) should or should not be stored template<bool storageEnabled> class StorageTag { public: enum { enabled = storageEnabled }; }; } // namespace implementation using implementation::DimensionType; #endif Loading
CMakeLists.txt +4 −0 Original line number Diff line number Diff line Loading @@ -13,11 +13,13 @@ include( OptimizeForArchitecture ) # if( CMAKE_BUILD_TYPE STREQUAL "Debug") set( PROJECT_BUILD_PATH ${PROJECT_SOURCE_DIR}/Debug/src ) set( PROJECT_TESTS_PATH ${PROJECT_SOURCE_DIR}/Debug/tests ) set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Debug/lib ) set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Debug/bin ) set( debugExt -dbg ) else() set( PROJECT_BUILD_PATH ${PROJECT_SOURCE_DIR}/Release/src ) set( PROJECT_TESTS_PATH ${PROJECT_SOURCE_DIR}/Release/tests ) set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Release/lib) set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/Release/bin) #set( CXX_OPTIMIZE_FLAGS "-O3") Loading Loading @@ -203,6 +205,8 @@ ENABLE_TESTING() INCLUDE( Dart ) set( configDirectory \"${CMAKE_INSTALL_PREFIX}/share/tnl-${tnlVersion}/\") set( sourceDirectory \"${PROJECT_SOURCE_DIR}/\" ) set( testsDirectory \"${PROJECT_TESTS_DIR}/\" ) CONFIGURE_FILE( "tnlConfig.h.in" "${PROJECT_BUILD_PATH}/tnlConfig.h" ) INSTALL( FILES ${PROJECT_BUILD_PATH}/tnlConfig.h DESTINATION include/tnl-${tnlVersion} ) Loading
buildAll +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ TARGET=TNL INSTALL_PREFIX=${HOME}/local WITH_CUDA=yes WITH_CUDA=no CUDA_ARCHITECTURE=2.0 VERBOSE=1 Loading
src/mesh/CMakeLists.txt +14 −1 Original line number Diff line number Diff line INCLUDE_DIRECTORIES( common config detail global io topology ) ADD_SUBDIRECTORY( common ) ADD_SUBDIRECTORY( config ) ADD_SUBDIRECTORY( detail ) ADD_SUBDIRECTORY( global ) ADD_SUBDIRECTORY( io ) ADD_SUBDIRECTORY( topology ) SET( headers tnlDistributedGrid.h tnlGrid.h ) tnlGrid.h config.h information.h mesh.h traversal.h ) #SET( libtnlmeshincludedir ${TNL_INCLUDE_DIR}/mesh ) #SET( libtnlmeshinclude_HEADERS ${headers} ) Loading
src/mesh/common/CMakeLists.txt 0 → 100644 +3 −0 Original line number Diff line number Diff line SET( headers common.h ) INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/mesh/common ) No newline at end of file
src/mesh/common/common.h 0 → 100644 +37 −0 Original line number Diff line number Diff line #if !defined(_COMMON_H_) #define _COMMON_H_ namespace implementation { typedef int DimensionType; template<DimensionType dimension> class DimTag { public: enum { value = dimension }; typedef DimTag<dimension - 1> Previous; }; // Tags denoting whether certain mesh entities (by context) should or should not be stored template<bool storageEnabled> class StorageTag { public: enum { enabled = storageEnabled }; }; } // namespace implementation using implementation::DimensionType; #endif