mirror of
https://github.com/triqs/dft_tools
synced 2024-09-12 05:38:31 +02:00
fix: fix f2py command for numpy ver >1.22
This commit is contained in:
parent
095f8a0b6a
commit
295b7f278e
@ -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
|
||||
|
@ -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}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user