Nathan,<br><br>You should include the following lines in your application config file <br><pre><br> PARTICLETYPE newtype INITMETHOD lattice MAPMETHOD quadratic ADVMETHOD rungekutta<br><br> REQUIRES Particles/ParticlesMain<br>
REQUESTS Particles/ParticlesMapping/Quadratic<br> REQUESTS Particles/ParticlesInitialization/Lattice<br> REQUESTS IO/IOMain/<br> REQUESTS IO/IOParticles<br><br>If you have a new way of initializing, or mapping, you have to specify those in the<br>
first line and request appropriate subunits. Basically the first line registers<br>your particle type with the framework and the REQUESTS lines make sure that the<br>appropriate subunits are included. <br><br>If you need further help with this please write directly to me.<br>
<br>Best,<br>Anshu<br></pre><br><div class="gmail_quote">On Tue, Mar 6, 2012 at 7:46 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
I'm working with a new particle type in FLASH4-beta. In the Config file for the new particle type, I define several new PARTICLEPROP variables. Right now the particle data are written to plain ascii files using a hardcoded subroutine in IO_writePlotfile.F90. This works, but the resulting ascii files are difficult to parse and will break depending on the problem configuration or if one tried to run a simulation with more than one particle type. I'd really like to write out my particle data to the hdf5 particle files.<br>
<br>
I'm curious how I would go about doing that. When I try to force flash to write particle files, it looks like no data actually gets dumped (the localnp dataset consists of an array of nblocks zeros). How do I register my new particle type with the hdf5 output routines?<br>
<br>
There is also an 'unknown names' dataset that contains garbled versions of the PARTICLEPROP variables I set in the config file for the new particle type. Does anyone know how I register the PARTICLEPROP strings with the hdf5 output routines?<br>
<span class="HOEnZb"><font color="#888888"><br>
Nathan Goldbaum<br>
Graduate Student<br>
Astronomy & Astrophysics, UCSC<br>
<a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</a><br>
<a href="http://www.ucolick.org/%7Egoldbaum" target="_blank">http://www.ucolick.org/~goldbaum</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>**********************************************************************************************************<br>Anshu Dubey<br>Associate Director and CS/Applications Group Leader 5747 S. Ellis Avenue 3rd Flr.<br>
Flash Center for Computational Science 773 834 2999 (office)<br>Fellow, Computation Institute 312 420 0033 (mobile)<br>University of Chicago and Argonne National Laboratory 773 834 3230 (fax)<br>
**********************************************************************************************************<br><br>