~siesta-pseudos-bases/siesta/trunk-psml

« back to all changes in this revision

Viewing changes to Src/m_pulay.F90

  • Committer: Alberto Garcia
  • Date: 2019-09-02 14:09:43 UTC
  • mfrom: (427.6.323 trunk)
  • Revision ID: albertog@icmab.es-20190902140943-mzmbe1jacgefpgxw
Sync to trunk-776 (notably nc/soc wavefunction support)


Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
 
230
230
    !  Compute current maximum deviation ...........
231
231
    dmax = 0.0_dp
232
 
!$OMP parallel do default(shared), &
233
 
!$OMP&collapse(2), private(is,ind), reduction(max:dmax)
234
232
    do is = 1,nspin
235
233
       do ind = 1 , maxnd
236
234
          dmax = max(dmax, abs(dmnew(ind,is) - dmold(ind,is)))
237
235
       end do
238
236
    enddo
239
 
!$OMP end parallel do
240
237
 
241
238
#ifdef MPI
242
239
    ! Ensure that dmax is the same on all nodes for convergence test/output