Skip to content

Commit

Permalink
Compling errors due to int8_t (pyscf#1540)
Browse files Browse the repository at this point in the history
* Fix issue pyscf#1535

* Improve numint.py regarding to issue pyscf#1537
  • Loading branch information
sunqm authored Dec 14, 2022
1 parent 9219058 commit 3c8c787
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf/dft/numint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,7 @@ def _gen_rho_evaluator(self, mol, dms, hermi=0, with_lapl=True, grids=None):
if hermi != 1 and dms[0].dtype == numpy.double:
# (D + D.T)/2 because eval_rho computes 2*(|\nabla i> D_ij <j|) instead of
# |\nabla i> D_ij <j| + |i> D_ij <\nabla j| for efficiency when dm is real
dms = lib.hermi_sum(dms, axes=(0,2,1)) * .5
dms = lib.hermi_sum(numpy.asarray(dms, order='C'), axes=(0,2,1)) * .5
hermi = 1

nao = dms[0].shape[0]
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/dft/nr_numint.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include "config.h"
#include "gto/grid_ao_drv.h"
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/dft/numint_uniform_grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <assert.h>
#include <complex.h>
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/dft/r_numint.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <complex.h>
#include "config.h"
#include "gto/grid_ao_drv.h"
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/gto/deriv1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <complex.h>
#include "grid_ao_drv.h"
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/gto/deriv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <complex.h>
#include "gto/grid_ao_drv.h"
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/gto/ft_ao.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include <assert.h>
#include <complex.h>
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/gto/grid_ao_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <stdlib.h>
#include <math.h>
#include <stdint.h>
#include <complex.h>
#include "config.h"
#include "grid_ao_drv.h"
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/pbc/cint3c2e.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <stdlib.h>
#include <assert.h>
#include <stdint.h>
#include <math.h>
//#include <omp.h>
#include "config.h"
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/pbc/fill_ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <complex.h>
#include <assert.h>
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/pbc/fill_ints_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <stdlib.h>
#include <stdint.h>
#include <complex.h>
#include <assert.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/pbc/grid_ao.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <complex.h>
#include "config.h"
Expand Down
1 change: 1 addition & 0 deletions pyscf/lib/pbc/nr_direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <math.h>
//#include <omp.h>
Expand Down

0 comments on commit 3c8c787

Please sign in to comment.