From 99fcd3023701747f7766e6a36b478457d7410cb7 Mon Sep 17 00:00:00 2001
From: Dave Whipp <dwhipp@dal.ca>
Date: Mon, 14 Feb 2011 18:40:23 +0000
Subject: [PATCH] Removed passing of call_cnt for debugging and added option of
 using 2D strain rate invariants

---
 src/make_matrix.f90 | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/make_matrix.f90 b/src/make_matrix.f90
index 3acb0eeb..7385bf51 100644
--- a/src/make_matrix.f90
+++ b/src/make_matrix.f90
@@ -21,7 +21,7 @@ subroutine make_matrix (params,ndof,ael,bel,icon,xg,yg,zg,kfix,viscosity0,     &
                         diffusivity,heat,plasticity_type,plasticity_parameters,&
                         unode,vnode,wnode,temp,pressure,strain,is_plastic,     &
                         nnode,ffff,r0,s0,t0,rst,ileaves,eviscosity,vbounded,   &
-                        threadinfo,weight,call_cnt)
+                        threadinfo,weight)
 
 !------------------------------------------------------------------------------|
 !(((((((((((((((( Purpose of the routine  ))))))))))))))))))))))))))))))))))))))
@@ -90,7 +90,6 @@ logical vbounded
 logical is_plastic
 type (thread) threadinfo
 double precision weight
-integer call_cnt
 
 !------------------------------------------------------------------------------|
 !(((((((((((((((( declaration of the subroutine internal variables )))))))))))))
@@ -218,7 +217,7 @@ do iint=1,nint
       ezx=ezx+(dhdz(k)*unode(ic)+dhdx(k)*wnode(ic))/2.d0
    enddo
 
-   call deviatoric (exx,eyy,ezz,exy,eyz,ezx)
+   call deviatoric (params%invariants_2d,exx,eyy,ezz,exy,eyz,ezx)
 
    J2d=second_invariant(exx,eyy,ezz,exy,eyz,ezx)
    J3d=third_invariant (exx,eyy,ezz,exy,eyz,ezx)
@@ -242,7 +241,7 @@ do iint=1,nint
    if (trim(plasticity_type)/='No') &
    call vrm (params,J2d,J3d,compressibility,viscosity,pressure,                &
             plasticity_parameters,plasticity_type,is_plastic_temp,flag_vrm_pb, &
-            straintot,call_cnt)
+            straintot)
 
    is_plastic=is_plastic.or.is_plastic_temp
 
-- 
GitLab