-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
570 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Qcint is a general GTO integral library for computational chemistry | ||
* Copyright (C) 2014- Qiming Sun <[email protected]> | ||
* | ||
* This file is part of Qcint. | ||
* | ||
* Qcint is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
|
||
#include <stdlib.h> | ||
#include "cint_bas.h" | ||
#include "g2e.h" | ||
#include "optimizer.h" | ||
#include "cint2e.h" | ||
|
||
int int2e_gtg_sph(double *out, int *dims, int *shls, int *atm, int natm, | ||
int *bas, int nbas, double *env, CINTOpt *opt, double *cache) | ||
{ | ||
int ng[] = {0, 0, 0, 0, 0, 1, 1, 1}; | ||
CINTEnvVars envs; | ||
CINTinit_int2e_gtg_EnvVars(&envs, ng, shls, atm, natm, bas, nbas, env); | ||
envs.f_gout = &CINTgout2e; | ||
envs.f_gout_simd1 = &CINTgout2e_simd1; | ||
return CINT2e_spheric_drv(out, dims, &envs, opt, cache); | ||
} | ||
void int2e_gtg_optimizer(CINTOpt **opt, int *atm, int natm, | ||
int *bas, int nbas, double *env) | ||
{ | ||
int ng[] = {0, 0, 0, 0, 0, 1, 1, 1}; | ||
CINTall_2e_gtg_optimizer(opt, ng, atm, natm, bas, nbas, env); | ||
} | ||
|
||
#define ALL_CINT(NAME) \ | ||
int c##NAME##_sph(double *out, int *shls, int *atm, int natm, \ | ||
int *bas, int nbas, double *env, CINTOpt *opt) { \ | ||
return NAME##_sph(out, NULL, shls, 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); \ | ||
} | ||
|
||
ALL_CINT(int2e_gtg); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.