3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-22 04:13:47 +01:00

fix: fix f2py command for numpy ver >1.22

This commit is contained in:
Alexander Hampel 2023-01-23 15:57:53 -05:00
parent 095f8a0b6a
commit 295b7f278e
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ static void fun_dos_case3(double en, double *eigs, double *ci);
static const int NUM_TET_CORNERS = 4;
static const std::complex<double> I(0.0, 1.0);
static const double small = 2.5e-2, tol = 1e-8;
static const double tol = 1e-8;
/*
Returns corner contributions to the DOS of a band
@ -95,7 +95,7 @@ array<double, 2> dos_tetra_weights_3d(array<double, 1> eigk, double en, array<lo
//
double eigs[4], ci[4];
int i, it, ik, inds[4], flag;
int i, it, ik, inds[4];
#ifdef __TETRA_DEBUG
double ct, ci_sum;
#endif

View File

@ -12,7 +12,7 @@ add_custom_target(${module_name} ALL
##generate the fortran python wrapper shared library
add_custom_command(
OUTPUT ${generated_module_file}
COMMAND ${TRIQS_PYTHON_EXECUTABLE} -m numpy.f2py --f90exec=${CMAKE_Fortran_COMPILER} -c ${fortran_src_file} -m ${module_name} > elk_f2py.log
COMMAND ${TRIQS_PYTHON_EXECUTABLE} -m numpy.f2py --f90exec=${CMAKE_Fortran_COMPILER} --f77exec=${CMAKE_Fortran_COMPILER} -c ${fortran_src_file} -m ${module_name} > elk_f2py.log
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)