<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Britton,<br>
    <br>
    'Total_Energy' works fine but 'Gas_Energy' and 'ThermalEnergy' do
    not and lead to the same error.<br>
    I don't know if it can be of any use but I am running with the Zeus
    solver.<br>
    <br>
    Thanks,<br>
    <br>
    JC<br>
    <br>
    On 27/06/11 12:23, Britton Smith wrote:
    <blockquote
      cite="mid:BANLkTinvxza6GOB3UgAjxF8aiTA6cv5n5g@mail.gmail.com"
      type="cite">Hi JC,<br>
      <br>
      It looks like the problem is coming up when the Pressure field
      asks for the ThermalEnergy field.  If you try
      region['ThermalEnergy'], does that work?  If not, please also try
      region['TotalEnergy'] and region['GasEnergy'].<br>
      <br>
      Britton<br>
      <br>
      <div class="gmail_quote">On Mon, Jun 27, 2011 at 6:19 PM,
        Jean-Claude Passy <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:jcpassy@gmail.com">jcpassy@gmail.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000"> Hi all,<br>
            <br>
            I must be doing something silly because I get a weird error
            when trying to access the 'Pressure' field of a region:<br>
            <br>
            <address>---------------------------------</address>
            <address>TypeError: unsupported operand type(s) for *=:
              'NoneType' and 'float'</address>
            ---------------------------------<br>
            <br>
            It works fine with 'Density', 'x-velocity', 'x', ... I have
            pasted the complete output error here <a
              moz-do-not-send="true"
              href="http://paste.enzotools.org/show/7up5l2Q3Rc8nnLZA3VKu"
              target="_blank">http://paste.enzotools.org/show/7up5l2Q3Rc8nnLZA3VKu</a><br>
            Has anyone ever encountered that ?<br>
            <br>
            Thanks a lot,<br>
            <font color="#888888"> <br>
              JC<br>
            </font><br>
            <br>
            PS: I really like the new home page of the yt website.
            Congrats !<br>
          </div>
          <br>
          _______________________________________________<br>
          yt-users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org"
            target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
          <br>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>