<div dir="ltr">Hi Petr,<div><br></div><div>While I have not modified the dat file before, note that it should be easy to write to stdout.</div><div>For example, if you're debugging and want to know the minimum and maximum density before your code crashes you can do</div><div>==========</div><div>!! some flash file</div><div>use physicaldata, ONLY : unk</div><div>use Driver_data, ONLY : dr_globalMe ! or you can use pt_globalMe if you're in a Particle file and want to stay modular for example</div><div><br></div><div>if (dr_globalMe == MASTER_PE) then</div><div> write(*,*) "max dens: ", maxval(unk(DENS_VAR,:,:,:,:)) ! unk has indices to variables, i, j, k, blocks</div><div> write(*,*) "min dens: ", minval(unk(DENS_VAR,:,:,:,:))</div><div>endif</div><div>=========</div><div>Note that it's probably safer (especially for getting the minimum values, I don't remember if the above will just yield zero) to loop over list of blocks to find the maximum, minimum. Or do an MPI_ALLREDUCE. Many options :)</div><div><br></div><div>Best,<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--------<div>Ryan</div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 17, 2020 at 2:04 AM petrk <<a href="mailto:petrk@physics.muni.cz">petrk@physics.muni.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hello users,</p>
<p>Is there any possibility to write output data (for example for some particular quantities - density, pressure, etc.) explicitly to the ordinary .dat file and not to hdf?</p>
<p>Thanks a lot,</p>
<p>Petr</p>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px"></blockquote>
<p><br></p>
</div>
</blockquote></div>