Skip to content

Commit

Permalink
Guard time estimate printout in hessian with omp critical (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk authored Sep 17, 2020
1 parent 0e38521 commit 5b13467
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hessian.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5b13467

Please sign in to comment.