Skip to content

Commit

Permalink
Check for shearing boundary needed to be >-1 instead of !=0.
Browse files Browse the repository at this point in the history
--HG--
branch : week-of-code
  • Loading branch information
John Wise committed Jul 13, 2009
1 parent af62b34 commit 6c17f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enzo/Grid_CheckForPossibleOverlap.C
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int grid::CheckForPossibleOverlap(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;
Expand Down

0 comments on commit 6c17f62

Please sign in to comment.