Loading examples/heat-equation/HeatEquationBuildConfigTag.h +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ template<> struct ConfigTagReal< HeatEquationBuildConfigTag, long double > { enu * Turn off support for short int and long int indexing. */ template<> struct ConfigTagIndex< HeatEquationBuildConfigTag, short int >{ enum { enabled = false }; }; template<> struct ConfigTagIndex< HeatEquationBuildConfigTag, long int >{ enum { enabled = false }; }; template<> struct ConfigTagIndex< HeatEquationBuildConfigTag, long int >{ enum { enabled = true }; }; /**** * Please, chose your preferred time discretization here. Loading src/Tools/tnl-grid-setup.h +1 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ bool resolveIndexType( const Config::ParameterContainer& parameters ) std::cout << "Setting index type to ... " << indexType << std::endl; if( indexType == "int" ) return setupGrid< RealType, int >( parameters ); if( indexType == "long int" ) if( indexType == "long-int" ) return setupGrid< RealType, long int >( parameters ); std::cerr << "The index type '" << indexType << "' is not defined. " << std::endl; return false; Loading tests/CMakeLists.txt +1 −0 Original line number Diff line number Diff line Loading @@ -6,5 +6,6 @@ ADD_SUBDIRECTORY( benchmarks ) ADD_SUBDIRECTORY( long-time-unit-tests ) ADD_SUBDIRECTORY( mic ) ADD_SUBDIRECTORY( mpi ) ADD_SUBDIRECTORY( simple_examples ) unset( ENABLE_CODECOVERAGE ) tests/mpi/MeshFunctionEvaluateTest.cpp +5 −9 Original line number Diff line number Diff line Loading @@ -75,16 +75,12 @@ int main ( int argc, char *argv[]) all.start(); setup.start(); PointType globalOrigin; globalOrigin.setValue(-0.5); PointType origin(-0.5); PointType proportions(size); PointType globalProportions; globalProportions.setValue(size); MeshType globalGrid; globalGrid.setDimensions(globalProportions); globalGrid.setDomain(globalOrigin,globalProportions); SharedPointer<MeshType> gridPtr; gridPtr->setDimensions(proportions); gridPtr->setDomain(origin,proportions); CoordinatesType distr; Loading tests/simple_examples/CMakeLists.txt 0 → 100644 +17 −0 Original line number Diff line number Diff line IF( BUILD_CUDA ) CUDA_ADD_EXECUTABLE( large-meshfunction-example large-meshfunction-example.cu ) TARGET_COMPILE_OPTIONS( large-meshfunction-example PRIVATE ${CXX_TESTS_FLAGS} ) TARGET_LINK_LIBRARIES( large-meshfunction-example ${GTEST_BOTH_LIBRARIES} tnl ) ELSE( BUILD_CUDA ) ADD_EXECUTABLE( large-meshfunction-example large-meshfunction-example.cpp ) TARGET_COMPILE_OPTIONS( large-meshfunction-example PRIVATE ${CXX_TESTS_FLAGS} ) TARGET_LINK_LIBRARIES( large-meshfunction-example ${GTEST_BOTH_LIBRARIES} tnl ) ENDIF( BUILD_CUDA ) Loading
examples/heat-equation/HeatEquationBuildConfigTag.h +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ template<> struct ConfigTagReal< HeatEquationBuildConfigTag, long double > { enu * Turn off support for short int and long int indexing. */ template<> struct ConfigTagIndex< HeatEquationBuildConfigTag, short int >{ enum { enabled = false }; }; template<> struct ConfigTagIndex< HeatEquationBuildConfigTag, long int >{ enum { enabled = false }; }; template<> struct ConfigTagIndex< HeatEquationBuildConfigTag, long int >{ enum { enabled = true }; }; /**** * Please, chose your preferred time discretization here. Loading
src/Tools/tnl-grid-setup.h +1 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ bool resolveIndexType( const Config::ParameterContainer& parameters ) std::cout << "Setting index type to ... " << indexType << std::endl; if( indexType == "int" ) return setupGrid< RealType, int >( parameters ); if( indexType == "long int" ) if( indexType == "long-int" ) return setupGrid< RealType, long int >( parameters ); std::cerr << "The index type '" << indexType << "' is not defined. " << std::endl; return false; Loading
tests/CMakeLists.txt +1 −0 Original line number Diff line number Diff line Loading @@ -6,5 +6,6 @@ ADD_SUBDIRECTORY( benchmarks ) ADD_SUBDIRECTORY( long-time-unit-tests ) ADD_SUBDIRECTORY( mic ) ADD_SUBDIRECTORY( mpi ) ADD_SUBDIRECTORY( simple_examples ) unset( ENABLE_CODECOVERAGE )
tests/mpi/MeshFunctionEvaluateTest.cpp +5 −9 Original line number Diff line number Diff line Loading @@ -75,16 +75,12 @@ int main ( int argc, char *argv[]) all.start(); setup.start(); PointType globalOrigin; globalOrigin.setValue(-0.5); PointType origin(-0.5); PointType proportions(size); PointType globalProportions; globalProportions.setValue(size); MeshType globalGrid; globalGrid.setDimensions(globalProportions); globalGrid.setDomain(globalOrigin,globalProportions); SharedPointer<MeshType> gridPtr; gridPtr->setDimensions(proportions); gridPtr->setDomain(origin,proportions); CoordinatesType distr; Loading
tests/simple_examples/CMakeLists.txt 0 → 100644 +17 −0 Original line number Diff line number Diff line IF( BUILD_CUDA ) CUDA_ADD_EXECUTABLE( large-meshfunction-example large-meshfunction-example.cu ) TARGET_COMPILE_OPTIONS( large-meshfunction-example PRIVATE ${CXX_TESTS_FLAGS} ) TARGET_LINK_LIBRARIES( large-meshfunction-example ${GTEST_BOTH_LIBRARIES} tnl ) ELSE( BUILD_CUDA ) ADD_EXECUTABLE( large-meshfunction-example large-meshfunction-example.cpp ) TARGET_COMPILE_OPTIONS( large-meshfunction-example PRIVATE ${CXX_TESTS_FLAGS} ) TARGET_LINK_LIBRARIES( large-meshfunction-example ${GTEST_BOTH_LIBRARIES} tnl ) ENDIF( BUILD_CUDA )