Closed mameehan5 closed 4 years ago
I believe what's in the code is correct. If (i,j-1,k)
is at external Dirichlet boundary, it is assumed to be on the face of the domain (i.e., -dy/2 from (i,j,k)
), and we do have values there. It's not a completely one-sided stencil, it's a biased stencil.
Ah, okay! That make sense to me after reading more about the biased stencils. Thanks!
Hi all,
It appears to be that the single-sided difference stencils in computing vorticity magnitude in
IAMR/DERIVE_ND.F90
. I would have expected:uylo(i,j,k) = (U(i,j+1,k)+three*U(i,j,k)-four*U(i,j-1,k))/(three*dy)
to beuylo(i,j,k) = (-three*U(i,j,k)+four*U(i,j+1,k)-U(i,j+2,k))/(two*dy)
, etc. Maybe I am possibly misinterpreting the code? I am happy to make the corrections if this is an issue.Thanks! Mike