Commit 5c35591d authored by Christian Godenschwager's avatar Christian Godenschwager
Browse files

Merge branch...

Merge branch '17-does-not-compile-error-cannot-convert-walberla-real_t-aka-double-to-real_t-aka-float' into 'master'

Resolve "Does not compile: error: cannot convert ‘walberla::real_t* {aka double*}’ to ‘real_t* {aka float*}’"

Closes #17

See merge request !9
parents 634ea400 bde9b911
......@@ -69,7 +69,7 @@ option ( WALBERLA_BUILD_TOOLS "Build Tools"
option ( WALBERLA_BUILD_TUTORIALS "Build Tutorials" ON )
option ( WALBERLA_BUILD_WITH_MPI "Build with MPI" ON )
option ( WALBERLA_BUILD_WITH_METIS "Build with metis graph partitioner" ON )
option ( WALBERLA_BUILD_WITH_METIS "Build with metis graph partitioner" OFF )
option ( WALBERLA_BUILD_WITH_GPROF "Enables gprof" )
option ( WALBERLA_BUILD_WITH_GCOV "Enables gcov" )
......
......@@ -49,6 +49,11 @@
#ifdef WALBERLA_BUILD_WITH_METIS
// external software includes
#include "metis.h"
#include <boost/type_traits/is_same.hpp>
static_assert( boost::is_same< ::real_t, ::walberla::real_t >::value , "The width of waLBerla's real_t data type does not match the width of METIS' real_t data type. " \
"Please adapt either waLBerla's CMake option WALBERLA_DOUBLE_ACCURACY or change REALTYPEWIDTH in metis.h." );
#endif
#ifdef _MSC_VER
......@@ -56,4 +61,4 @@
#pragma pop_macro( "INT64_MIN" )
#pragma pop_macro( "INT32_MAX" )
#pragma pop_macro( "INT32_MIN" )
#endif
#endif
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment