<p>Hi Hsi-Yu, </p>
<p>I don't have anything technical (or useful) to add, but I would like to also welcome you to yt. </p>
<p>Jeff</p>
<div class="gmail_quote">On Sep 25, 2012 2:03 PM, "Matthew Turk" <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Hsi-Yu,<br>
<br>
First off, welcome to yt-dev! I saw your email and was delighted to<br>
hear you'd like to add support for GAMER to yt.<br>
<br>
On Tue, Sep 25, 2012 at 4:56 AM, Hsi-Yu Schive <<a href="mailto:hyschive@ntu.edu.tw">hyschive@ntu.edu.tw</a>> wrote:<br>
> Dear all,<br>
><br>
> Hi. My name is Hsi-Yu Schive. I'm the main developer of the GAMER code,<br>
> which is a GPU-accelerated AMR code for astrophysical simulations.<br>
> I'm very interested in adding support of GAMER in yt!<br>
> I appreciate if anyone has any suggestion about the best way to initialize<br>
> this work!<br>
><br>
> The AMR implementation of GAMER is very similar to FLASH. The AMR hierarchy<br>
> is composed of cell blocks, and each of which has a fixed number of cells<br>
> (e.g., 8^3 cells per block).<br>
> An octree data structure is adopted to maintain the AMR hierarchy.<br>
><br>
> I'll start with following the suggestions given in the "Adding Support for a<br>
> New Code"<br>
> section in the bitbucket yt page and also looking into the Enzo output<br>
> style.<br>
> Any suggestion/comment is more than welcome : )<br>
<br>
Awesome!<br>
<br>
First off -- *please* feel free to ask questions. We're an<br>
eager-to-help bunch, and I'd like to make sure that the GAMER format<br>
addition goes without too much difficulty for you! You can also feel<br>
free to stop by in IRC ( #yt on <a href="http://chat.freenode.org" target="_blank">chat.freenode.org</a> ) where a couple<br>
people are usually available.<br>
<br>
I would actually recommend starting with a different method -- the<br>
simplest reader is probably FLASH, which is very straightforward (and<br>
as you note, similar to the GAMER format.) The "how to add a<br>
frontend" should be mostly up to date, but I went ahead and put into<br>
the yt/frontends/_skeleton directory the skeleton of a frontend, with<br>
comments, drawn from the FLASH frontend. (This is why it took me a<br>
bit to write back.) Basically what you need to do:<br>
<br>
1) Create a yt/frontends/gamer/ directory, and copy over everything<br>
except __config__.py from the _skeleton directory<br>
2) Rename all the items in the data_structures and fields.py to be<br>
GAMER instead of Skeleton<br>
3) Implement the routines necessary inside the various classes and .py files<br>
<br>
I hope that helps, but please do write back if you run into trouble --<br>
and if you'd like to share a dataset and have one of us write the<br>
frontend, that would also work!<br>
<br>
Great to hear from you,<br>
<br>
Matt<br>
<br>
><br>
> Sincerely,<br>
> Hsi-Yu<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> yt-dev mailing list<br>
> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div>