Skip to content

Commit

Permalink
Fix Fortran APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Feb 14, 2018
1 parent ac40a8b commit 6612db1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Version 3.0.8 (2017-02-14):
* Fix Fortran APIs
Version 3.0.7 (2017-01-15):
* Add 3-center SOC integrals
Version 3.0.6 (2017-12-20):
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
libcint
=======

version 3.0.7
2018-01-15
version 3.0.8
2018-02-14


What is libcint
Expand Down
18 changes: 11 additions & 7 deletions src/c2f.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,34 @@

#define ALL_CINT_FORTRAN_(NAME) \
int c##NAME##_sph_(double *out, int *shls, int *atm, int *natm, \
int *bas, int *nbas, double *env, CINTOpt *opt) { \
int *bas, int *nbas, double *env, int64_t optptr_as_integer8) { \
CINTOpt **opt = (CINTOpt **)optptr_as_integer8; \
return NAME##_sph(out, NULL, shls, \
atm, *natm, bas, *nbas, env, opt, NULL); \
atm, *natm, bas, *nbas, env, *opt, NULL); \
} \
void c##NAME##_sph_optimizer_(CINTOpt **opt, int *atm, int *natm, \
int *bas, int *nbas, double *env) { \
NAME##_optimizer(opt, atm, *natm, bas, *nbas, env); \
} \
int c##NAME##_cart_(double *out, int *shls, int *atm, int *natm, \
int *bas, int *nbas, double *env, CINTOpt *opt) { \
int *bas, int *nbas, double *env, int64_t optptr_as_integer8) { \
CINTOpt **opt = (CINTOpt **)optptr_as_integer8; \
return NAME##_cart(out, NULL, shls, \
atm, *natm, bas, *nbas, env, opt, NULL); \
atm, *natm, bas, *nbas, env, *opt, NULL); \
} \
void c##NAME##_cart_optimizer_(CINTOpt **opt, int *atm, int *natm, \
int *bas, int *nbas, double *env) { \
NAME##_optimizer(opt, atm, *natm, bas, *nbas, env); \
} \
int c##NAME##_(double *out, int *shls, int *atm, int *natm, \
int *bas, int *nbas, double *env, CINTOpt *opt) { \
int *bas, int *nbas, double *env, int64_t optptr_as_integer8) { \
CINTOpt **opt = (CINTOpt **)optptr_as_integer8; \
return NAME##_spinor((double complex *)out, NULL, shls, \
atm, *natm, bas, *nbas, env, opt, NULL); \
atm, *natm, bas, *nbas, env, *opt, NULL); \
} \
void c##NAME##_optimizer_(CINTOpt **opt, int *atm, int *natm, \
void c##NAME##_optimizer_(int64_t optptr_as_integer8, int *atm, int *natm, \
int *bas, int *nbas, double *env) { \
CINTOpt **opt = (CINTOpt **)optptr_as_integer8; \
NAME##_optimizer(opt, atm, *natm, bas, *nbas, env); \
}

Expand Down

0 comments on commit 6612db1

Please sign in to comment.