yt inline (feed information to Enzo)
Hi all, I am trying to calculate the mass flux through a sphere and modify a simulation parameter accordingly. I heard that it is possible to use yt to extract information from an Enzo simulation and feed it back to Enzo, but I was having a hard time finding an example. Is this where I should start: http://enzo.readthedocs.org/en/latest/user_guide/EmbeddedPython.html ? If not, please direct me to the right place. If that is what I should be looking at, I am having trouble compiling Enzo with "make python-yes". I tried to use the python 2.7 that comes with yt2.x, but got an error message related to "architecture x86_64" on my macbook (I am able to compile Enzo with python-no). I looked at the example Make.mach.orange. LOCAL_INCLUDES_PYTHON is using python2.7, but LOCAL_LIBS_PYTHON is using python2.6. I am confused: is that how it is supposed to be done? Do I have to install a python2.6 separately? Thank you! Yuan _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Yuan,
Looks like it's a simple mistake -- you should be using Python 2.7
everywhere. :)
On Wed, May 13, 2015 at 12:49 PM, Yuan Li
Hi all,
I am trying to calculate the mass flux through a sphere and modify a simulation parameter accordingly. I heard that it is possible to use yt to extract information from an Enzo simulation and feed it back to Enzo, but I was having a hard time finding an example.
Is this where I should start: http://enzo.readthedocs.org/en/latest/user_guide/EmbeddedPython.html ?
If not, please direct me to the right place. If that is what I should be looking at, I am having trouble compiling Enzo with "make python-yes". I tried to use the python 2.7 that comes with yt2.x, but got an error message related to "architecture x86_64" on my macbook (I am able to compile Enzo with python-no). I looked at the example Make.mach.orange. LOCAL_INCLUDES_PYTHON is using python2.7, but LOCAL_LIBS_PYTHON is using python2.6. I am confused: is that how it is supposed to be done? Do I have to install a python2.6 separately?
Thank you! Yuan
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Matt,
Yeah. Brian Crosby helped me yesterday. Python 2.7 should be used
everywhere as you said.
I replaced this:
LOCAL_LIBS_PYTHON =
$(LOCAL_PYTHON_INSTALL)/lib/python2.6/config/libpython2.6.a
with this:
LOCAL_LIBS_PYTHON = -L$(LOCAL_PYTHON_INSTALL)/lib -lpython2.7
Now it compiles :).
Thanks!
Yuan
On Thu, May 14, 2015 at 9:00 AM, Matthew Turk
Hi Yuan,
Looks like it's a simple mistake -- you should be using Python 2.7 everywhere. :)
On Wed, May 13, 2015 at 12:49 PM, Yuan Li
wrote: Hi all,
I am trying to calculate the mass flux through a sphere and modify a simulation parameter accordingly. I heard that it is possible to use yt to extract information from an Enzo simulation and feed it back to Enzo, but I was having a hard time finding an example.
Is this where I should start: http://enzo.readthedocs.org/en/latest/user_guide/EmbeddedPython.html ?
If not, please direct me to the right place. If that is what I should be looking at, I am having trouble compiling Enzo with "make python-yes". I tried to use the python 2.7 that comes with yt2.x, but got an error message related to "architecture x86_64" on my macbook (I am able to compile Enzo with python-no). I looked at the example Make.mach.orange. LOCAL_INCLUDES_PYTHON is using python2.7, but LOCAL_LIBS_PYTHON is using python2.6. I am confused: is that how it is supposed to be done? Do I have to install a python2.6 separately?
Thank you! Yuan
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Matthew Turk
-
Yuan Li
-
Yuan Li