<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19328">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Calibri>Hi Matt and Jeff,</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Thanks for the suggestions! I'll look into the FLASH
reader and get back to you</FONT></DIV>
<DIV><FONT face=Calibri>if I have any question. I'm eagerly looking forward to
using yt!</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Sincerely,</FONT></DIV>
<DIV><FONT face=Calibri>Hsi-Yu</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt 新細明體">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt 新細明體; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=jsoishi@gmail.com href="mailto:jsoishi@gmail.com">j s oishi</A>
</DIV>
<DIV style="FONT: 10pt 新細明體"><B>To:</B> <A title=yt-dev@lists.spacepope.org
href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</A> </DIV>
<DIV style="FONT: 10pt 新細明體"><B>Sent:</B> Wednesday, September 26, 2012 2:45
AM</DIV>
<DIV style="FONT: 10pt 新細明體"><B>Subject:</B> Re: [yt-dev] Adding the GAMER
code</DIV>
<DIV><BR></DIV>
<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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>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>
<P>
<HR>
<P></P>_______________________________________________<BR>yt-dev mailing
list<BR>yt-dev@lists.spacepope.org<BR>http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org<BR></BLOCKQUOTE></BODY></HTML>