[yt-users] yt inline (feed information to Enzo)

Yuan Li bear0980 at gmail.com
Thu May 14 07:58:56 PDT 2015


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 <matthewturk at gmail.com> wrote:

> 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 <yuan at astro.columbia.edu> 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 at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150514/e3f795f7/attachment.htm>
-------------- next part --------------
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


More information about the yt-users mailing list