[Yt-svn] yt-commit r597 - branches/yt-generalization/yt/lagos

joishi at wrangler.dreamhost.com joishi at wrangler.dreamhost.com
Sat Jun 21 14:37:35 PDT 2008


Author: joishi
Date: Sat Jun 21 14:37:34 2008
New Revision: 597
URL: http://yt.spacepope.org/changeset/597

Log:
* added OrionDefs. this contains a dict to translate Orion-speak to
  Enzo/yt-speak.


Added:
   branches/yt-generalization/yt/lagos/OrionDefs.py   (contents, props changed)

Added: branches/yt-generalization/yt/lagos/OrionDefs.py
==============================================================================
--- (empty file)
+++ branches/yt-generalization/yt/lagos/OrionDefs.py	Sat Jun 21 14:37:34 2008
@@ -0,0 +1,34 @@
+"""
+Various definitions for various other modules and routines
+
+ at author: U{JS Oishi<http://www.jsoishi.org/>}
+ at organization: U{UC Berkeley<http://www.astro.berkeley.edu/>}
+ at contact: U{jsoishi at astro.berkeley.edu<mailto:jsoishi at astro.berkeley.edu>}
+
+ at todo: Move into yt.Defs, along with enki.EnkiDefs
+ at license:
+  Copyright (C) 2008 J.S. Oishi.  All Rights Reserved.
+
+  This file is part of yt.
+
+  yt is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 3 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+"""
+
+### this assumes EnzoDefs.py has *already* been imported
+
+# converts the Orion inputs file name to the Enzo/yt name expected
+# throughout the code. key is Orion name, value is Enzo/yt equivalent
+orion2enzoDict = {"amr.n_cell": "TopGridRank",
+                  }



More information about the yt-svn mailing list