From 5b13467bd63a2a4dbd5b339ed44d0fa026b6f0af Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Thu, 17 Sep 2020 12:10:45 +0200 Subject: [PATCH] Guard time estimate printout in hessian with omp critical (#350) --- src/hessian.F90 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hessian.F90 b/src/hessian.F90 index 8b86ff9f2..b9bad6eb5 100644 --- a/src/hessian.F90 +++ b/src/hessian.F90 @@ -246,10 +246,12 @@ subroutine numhess( & enddo if(a.eq.3)then call timing(t1,w1) + !$omp critical write(*,'(''estimated CPU time'',F10.2,'' min'')') & & 0.3333333d0*nonfrozh*(t1-t0)/60. write(*,'(''estimated wall time'',F10.2,'' min'')') & & 0.3333333d0*nonfrozh*(w1-w0)/60. + !$omp end critical endif enddo !$omp end do @@ -315,10 +317,12 @@ subroutine numhess( & if(ia.eq.3)then call timing(t1,w1) + !$omp critical write(*,'(''estimated CPU time'',F10.2,'' min'')') & & 0.3333333d0*mol%n*(t1-t0)/60. write(*,'(''estimated wall time'',F10.2,'' min'')') & & 0.3333333d0*mol%n*(w1-w0)/60. + !$omp end critical endif enddo !$omp end do