Skip to content

Commit

Permalink
Merge remote-tracking branch 'mine/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
akasharora123 committed Apr 19, 2016
2 parents 9beb75d + e9cace6 commit 96c7bc4
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/iterate/iterate_mod.fp.f
Original file line number Diff line number Diff line change
Expand Up @@ -1373,13 +1373,6 @@ subroutine iterate_AM( &
endif
write(6,*)'Stress relaxation iteration = ',itr_stress
!! itr_relax = 0
!! stress_relax: do
!! if(maxval(abs(stress)*stress_rescale) < error_max) exit stress_relax
!! itr_relax = itr_relax + 1
!! write(6,*)'Stress relaxation for fixed omega = ',itr_relax
call response_dstress_dcell(N,omega,dstress_dcell )
Expand Down Expand Up @@ -1518,6 +1511,21 @@ subroutine iterate_AM( &
! If fixed unit cell, calculate residual stress before output
if (.not.domain) stress = scf_stress(N, N_cell_param, dGsq)
contains
function norm2(x)
implicit none
intrinsic :: dot_product, sqrt
real(long) :: norm2
real(long), intent(IN) :: x(:)
norm2 = sqrt(dot_product(x,x))
end function norm2
end subroutine iterate_AM
end module iterate_mod

0 comments on commit 96c7bc4

Please sign in to comment.