Skip to content

Commit

Permalink
More fixes for Shearing Boundary Condition.
Browse files Browse the repository at this point in the history
--HG--
branch : week-of-code
  • Loading branch information
matthewturk committed Jul 15, 2009
1 parent 96b07fb commit 689307e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enzo/Grid_CheckForSharedFace.C
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 689307e

Please sign in to comment.