Skip to content

Commit

Permalink
fix a bug for nonlinear viscous zones.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarbot committed Aug 25, 2014
1 parent abc4c6a commit 6b5c2f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/relax.f90
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,10 @@ PROGRAM relax
IF (ALLOCATED(in%nonlinearstruc)) THEN
! powerlaw viscosity
v1=0
IF (0 .LT. in%nlwz) THEN
IF (0 .LT. in%nnlwz) THEN
CALL viscouseigenstress(in%mu,in%nonlinearstruc, &
sig,in%sx1,in%sx2,in%sx3/2, &
in%dx1,in%dx2,in%dx3,moment,DGAMMADOT0=lineardgammadot0,GAMMA=v1)
in%dx1,in%dx2,in%dx3,moment,DGAMMADOT0=nonlineardgammadot0,GAMMA=v1)
ELSE
CALL viscouseigenstress(in%mu,in%nonlinearstruc, &
sig,in%sx1,in%sx2,in%sx3/2, &
Expand Down
2 changes: 1 addition & 1 deletion src/viscoelastic3d.f90
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ SUBROUTINE builddgammadot0(sx1,sx2,sx3,dx1,dx2,dx3,beta, &

INTEGER :: i1,i2,i3
REAL*8 :: x1,x2,x3,dum

!$omp parallel do private(i1,i2,x1,x2,x3,dum)
DO i3=1,sx3
x3=DBLE(i3-1)*dx3
Expand Down

0 comments on commit 6b5c2f2

Please sign in to comment.