Commit f16cae24 authored by Vít Hanousek's avatar Vít Hanousek
Browse files

Add simple testapp for meshfunction on large grid.

parent a00dd0a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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 )
+5 −9
Original line number Diff line number Diff line
@@ -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;
+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