Skip to content
Snippets Groups Projects
Commit bec53de6 authored by Robert K's avatar Robert K Committed by Tobias Malkmus
Browse files

Some more modifications for flop counting.

parent 205db864
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,11 @@ namespace Fem
* \ingroup EulerProblems
*/
//typedef double NsRangeField ;
//typedef float NsRangeField ;
#ifdef COUNT_FLOPS
typedef Double EulerRangeField ;
#else
typedef double EulerRangeField ;
#endif
template <class GridType>
class ProblemBase :
......
......@@ -5,11 +5,15 @@ configure_parameter_file()
# specify type of grid implemention, dimension and polynmomial order
set( GRIDTYPE ALUGRID_CUBE )
#set( GRIDTYPE SPGRID_COUNT_FLOPS )
#set( GRIDTYPE SPGRID )
set( GRIDDIM 2 )
set( POLORDER 2 )
add_definitions( "-D${GRIDTYPE}" )
add_definitions( "-DGRIDDIM=${GRIDDIM}" )
#add_definitions( "-DCOUNT_FLOPS" )
#add_definitions( "-DCODEGEN_SIMD_WIDTH=4" )
set( MAIN ${CMAKE_CURRENT_SOURCE_DIR}/../main.cc )
set( CHORJO ${CMAKE_CURRENT_SOURCE_DIR}/../problems/chorjo.cc )
......
......@@ -59,8 +59,8 @@ namespace Fem
Galerkin::Enum::dg,
Adaptivity::Enum::yes,
DiscreteFunctionSpaces::Enum::legendre,
Solver::Enum::istl,
//Solver::Enum::fem,
//Solver::Enum::istl,
Solver::Enum::fem,
AdvectionLimiter::Enum::unlimited,
Matrix::Enum::matrixfree,
AdvectionFlux::Enum::llf,
......
......@@ -83,7 +83,7 @@ namespace Fem
inline double k( const double T ) const { return problem_.k(T); }
protected:
const EulerAnalyticalFlux<dimDomain> eulerFlux_;
const EulerAnalyticalFlux<dimDomain, RangeFieldType > eulerFlux_;
const ProblemType& problem_;
const double gamma_;
const double R_d_inv_;
......
......@@ -4,11 +4,13 @@ configure_parameter_file()
# specify type of grid implemention, dimension and polynmomial order
set( GRIDTYPE ALUGRID_CUBE )
#set( GRIDTYPE SPGRID_COUNT_FLOPS )
set( GRIDDIM 2 )
set( POLORDER 2 )
add_definitions( "-D${GRIDTYPE}" )
add_definitions( "-DGRIDDIM=${GRIDDIM}" )
#add_definitions( "-DCOUNT_FLOPS" )
if( NOT FEMDG_FAST_TESTBUILD )
if( DUNE_FEM_DG_VERSION VERSION_LESS "2.4.1" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment