Skip to content

Commit

Permalink
Fix SR int1e_grids integrals
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Sep 28, 2023
1 parent 77adb04 commit 47e9b55
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/g1e_grids.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ void CINTinit_int1e_grids_EnvVars(CINTEnvVars *envs, int *ng, int *shls,
envs->common_factor = 2 * M_PI
* CINTcommon_fac_sp(envs->i_l) * CINTcommon_fac_sp(envs->j_l);

int nroots = envs->nrys_roots;
int rys_order = envs->nrys_roots;
int nroots = rys_order;
double omega = env[PTR_RANGE_OMEGA];
if (omega < 0 && rys_order <= 3) {
nroots *= 2;
}
envs->rys_order = rys_order;
envs->nrys_roots = nroots;

int dli, dlj;
int ibase = envs->li_ceil > envs->lj_ceil;
if (ibase) {
Expand Down

0 comments on commit 47e9b55

Please sign in to comment.