Skip to content

Commit

Permalink
Fix AO bug in HPC
Browse files Browse the repository at this point in the history
  • Loading branch information
scemama committed Aug 24, 2023
1 parent 803f914 commit bbf596b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions org/qmckl_ao.org
Original file line number Diff line number Diff line change
Expand Up @@ -5628,6 +5628,7 @@ integer function qmckl_compute_ao_value_doc_f(context, &
e_coord(1) = coord(ipoint,1)
e_coord(2) = coord(ipoint,2)
e_coord(3) = coord(ipoint,3)
ao_value(:,ipoint) = 0.d0
do inucl=1,nucl_num
n_coord(1) = nucl_coord(inucl,1)
n_coord(2) = nucl_coord(inucl,2)
Expand Down Expand Up @@ -5751,6 +5752,8 @@ qmckl_compute_ao_value_hpc_gaussian (const qmckl_context context,
{
<<ao_value_constants>>

memset(ao_value, 0, ao_num*point_num*sizeof(double));

#ifdef HAVE_OPENMP
#pragma omp parallel if (point_num > 16)
#endif
Expand Down Expand Up @@ -6543,6 +6546,8 @@ qmckl_compute_ao_vgl_hpc_gaussian (
{
<<ao_value_constants>>

memset(ao_vgl, 0, 5*ao_num*point_num*sizeof(double));

#ifdef HAVE_OPENMP
#pragma omp parallel if (point_num > 16)
#endif
Expand Down

0 comments on commit bbf596b

Please sign in to comment.