<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Dear all,</p>
<p><br>
</p>
<p>I've been playing around with the 'intp_rstd' subroutine to do calculations on the dealiasing grid (lxd*lxy*lzd). I can map the velocity field onto the fine grid (vx --> vxd) and when I print out values it seems fine. Then I try to calculate vxd**2, and
still seems fine. However, when I try to map back to the original grid, the results are complete garbage. Here is a snippet of my code. </p>
<p><br>
</p>
<p></p>
<div> do e=1,nelv ! mapping to fine grid</div>
<div> call intp_rstd(vxd(1,1,1,e),vx(1,1,1,e),nx1,nxd,if3d,0) ! 0 --> forward</div>
<div> enddo</div>
<div><br>
</div>
<div> call vsq(vxd,ntotd) ! calculating vxd**2</div>
<div></div>
<div><br>
</div>
<div> do e=1,nelv ! mapping back to original grid</div>
<div> call intp_rstd(vx(1,1,1,e),vxd(1,1,1,e),nx1,nxd,if3d,1) ! 0 --> backwards</div>
<div> enddo</div>
<br>
<p></p>
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Am I doing something wrong?</span><br>
</p>
<p><br>
</p>
<p>Thanks,</p>
<p><br>
</p>
<p>Juan Diego</p>
</div>
</body>
</html>