<div dir="ltr"><div>Hi Marco, <br><br></div>It seems like ifxyo overwrites itself to .false. after istep .eq. 0 conditional statement. If you have the flexibility of running the code again (if it runs quickly), you can set ifxyo = .true. just before the avg_all() call. Otherwise, you can run, nek5000 is post-processing mode as follows.<br><br><br> subroutine userchk
<div> include 'SIZE'</div>
<div> include 'TOTAL'</div>
<div> include 'ZPER' ! Needed to communicate nelx,nely,nelz to my_stats<br></div><div> include 'RESTART'<br></div>
<div><br>
</div>
<div> character*80 filename<br><br></div><div> filename = 'avg.....fld..' <original filename of average file><br><br></div><div> call load_fld(filename)<br></div><div> ifxyo = .true.<br></div><div> call outpost(vx,vy,vz,pr,t,'avx')<br><br></div><div> call exitt<br><br></div><div> return</div>
<div> end</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 22, 2016 at 12:48 PM, <span dir="ltr"><<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Here is what I have in my usrchk():
<div><br>
</div>
<div>
<div> subroutine userchk</div>
<div> include 'SIZE'</div>
<div> include 'TOTAL'</div>
<div> include 'ZPER' ! Needed to communicate nelx,nely,nelz to my_stats</div>
<div><br>
</div>
<div> common /my_recycle/ nslab,n_in_slab</div>
<div><br>
</div>
<div> ifxyo = .true.</div>
<div> if (istep.eq.0) call outpost(vx,vy,vz,pr,t,' ')</div>
<div> ifxyo = .false.</div>
<div><br>
</div>
<div>c call set_inflow(nslab,n_in_slab) ! set up inflow BCs</div>
<div><br>
</div>
<div> nelx = n_in_slab</div>
<div> nely = 1</div>
<div> nelz = nelgv/(nelx*nely)</div>
<div><br>
</div>
<div>c if (istep.gt.0) call my_stats</div>
<div><br>
</div>
<div> call avg_all()</div>
<div><br>
</div>
<div> return</div>
<div> end</div>
<div><br>
</div>
<div>Marco</div>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On Jul 22, 2016, at 3:34 PM, <a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">
nek5000-users@lists.mcs.anl.gov</a> wrote:</div>
<br>
</div></div><div><div><div class="h5">
<div style="font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;direction:ltr;font-family:Tahoma;font-size:12pt">
Interesting... Check whether there is a statement<br>
<br>
ifxyo = .false. in usrchk() which overrides .rea specification (typically after the first dump to save the disk space)<br>
<br>
Aleks<br>
<div style="font-family:'Times New Roman';font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" size="2"><b>From:</b><span> </span><a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov" target="_blank">nek5000-users-bounces@lists.mcs.anl.gov</a>
[<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov" target="_blank">nek5000-users-bounces@lists.mcs.anl.gov</a>] on behalf of
<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a> [<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>]<br>
<b>Sent:</b><span> </span>Friday, July 22, 2016 1:52 PM<br>
<b>To:</b><span> </span><a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a><br>
<b>Subject:</b><span> </span>Re: [Nek5000-users] avg_all and visnek<br>
</font><br>
</div>
<div></div>
<div>Hi Aleks,
<div><br>
</div>
<div>thanks for your help.</div>
<div><br>
</div>
<div>I did set CORDINATES to T in the block ‘SPECIFICATIONS FOLLOW’. It was originally set to F.</div>
<div><br>
</div>
<div>I copied my instantaneous dump file into avg*0.f00000 and then substituted firsttimestep:1 to firsttimestep:0. It did work.</div>
<div><br>
</div>
<div>This is the first time I have to do such a thing when using avg_all() even though I have used avg_all() in the past. Is there anything that has changed in the code?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Marco<br>
<div>
<blockquote type="cite">
<div>On Jul 22, 2016, at 2:17 PM,<span> </span><a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a><span> </span>wrote:</div>
<br>
<div><span style="font-family:Tahoma;font-size:16px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">firsttimestep</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Nek5000-users
mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"><a href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank">Nek5000-users@lists.mcs.anl.gov</a></span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"><a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a></span></div>
</blockquote>
</div>
<br>
</div>
</div>
<br>_______________________________________________<br>
Nek5000-users mailing list<br>
<a href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" rel="noreferrer" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
<br></blockquote></div><br></div>