Skip to content

Commit

Permalink
Fix: Parallelisation of numerical Hessian (#146)
Browse files Browse the repository at this point in the history
- declare strain derivs in omp as private
  • Loading branch information
awvwgk authored Mar 16, 2020
1 parent 69b5cfe commit dfeae72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hessian.F90
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ subroutine numhess( &
!! ------------------------------------------------------------------------
!$ nproc = omp_get_num_threads()
!$omp parallel default(shared) &
!$omp& firstprivate(mol,calc,et,maxiter,acc,wf0) &
!$omp& private(ia,ic,ii,ja,jc,jj,eel,gr,gl,egap,sccr,sccl,wfx,tmol) &
!$omp& shared (h,dipd,pold,step,step2,t1,t0,w1,w0,xyzsave,env)
!$omp firstprivate(mol,calc,et,maxiter,acc,wf0) &
!$omp private(ia,ic,ii,ja,jc,jj,eel,gr,gl,egap,sccr,sccl,sr,sl,wfx,tmol) &
!$omp shared (h,dipd,pold,step,step2,t1,t0,w1,w0,xyzsave,env)
!$ call omp_set_num_threads(1)
#ifdef WITH_MKL
!$ call mkl_set_num_threads(1)
Expand Down

0 comments on commit dfeae72

Please sign in to comment.