From 689307e59edbd3fc2f625e9c49e885490ed59af2 Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Tue, 14 Jul 2009 22:33:45 -0400 Subject: [PATCH] More fixes for Shearing Boundary Condition. --HG-- branch : week-of-code --- src/enzo/Grid_CheckForSharedFace.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enzo/Grid_CheckForSharedFace.C b/src/enzo/Grid_CheckForSharedFace.C index cc402f994..8adb486fb 100644 --- a/src/enzo/Grid_CheckForSharedFace.C +++ b/src/enzo/Grid_CheckForSharedFace.C @@ -74,7 +74,7 @@ int grid::CheckForSharedFace(grid *OtherGrid, FLOAT Lx, Ly, ShearingOffset; - if (ShearingBoundaryDirection) { // For shearing box we have another offset in the y direction + if (ShearingBoundaryDirection > -1) { // For shearing box we have another offset in the y direction Lx = (DomainRightEdge[ShearingBoundaryDirection]-DomainLeftEdge[ShearingBoundaryDirection]); Ly = (DomainRightEdge[ShearingVelocityDirection]-DomainLeftEdge[ShearingVelocityDirection]); ShearingOffset = AngularVelocity*VelocityGradient*Time*Lx;