[Yt-svn] yt: Adding FLASHFields module.

hg at spacepope.org hg at spacepope.org
Wed Jul 28 10:46:16 PDT 2010


hg Repository: yt
details:   yt/rev/d3fe9dbcfaf3
changeset: 1891:d3fe9dbcfaf3
user:      Matthew Turk <matthewturk at gmail.com>
date:
Wed Jul 28 10:46:12 2010 -0700
description:
Adding FLASHFields module.

diffstat:

 yt/lagos/FLASHFields.py |  33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diffs (37 lines):

diff -r 14a60b015517 -r d3fe9dbcfaf3 yt/lagos/FLASHFields.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/yt/lagos/FLASHFields.py	Wed Jul 28 10:46:12 2010 -0700
@@ -0,0 +1,33 @@
+"""
+Chombo-specific fields
+
+Author: J. S. Oishi <jsoishi at gmail.com>
+Affiliation: UC Berkeley
+Homepage: http://yt.enzotools.org/
+License:
+  Copyright (C) 2009 J. S. Oishi, Matthew Turk.  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/>.
+"""
+
+from UniversalFields import *
+class FLASHFieldContainer(CodeFieldInfoContainer):
+    _shared_state = {}
+    _field_list = {}
+FLASHFieldInfo = FLASHFieldContainer()
+add_flash_field = FLASHFieldInfo.add_field
+
+add_field = add_flash_field



More information about the yt-svn mailing list