<!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">
    <br>
    Dear all Grackle users,<br>
    <br>
    For those of you who wants to use the new grackle wrapper designed
    to interface with C,<br>
    I've found a tiny bug.<br>
    <br>
    In the file <tt>grackle_wrapper.cxx</tt>, we need to specify the
    velocity units in the structure <tt>my_units</tt>:<br>
    <br>
    <tt>&nbsp; velocity_units = my_units.a_units * my_units.length_units
      /my_units.time_units;<br>
      <b>&nbsp; my_units.velocity_units = velocity_units;</b></tt><br>
    <br>
    Including the previous change and setting: <br>
    <br>
    <tt>&nbsp; my_chemistry.with_radiative_cooling = 0;<br>
      &nbsp; my_chemistry.primordial_chemistry = 0;</tt><br>
    <br>
    and un-commenting:<br>
    <tt>&nbsp; a_value = auni / my_units.a_units;</tt><br>
    <br>
    The interface works fine for me.<br>
    <br>
    Cheers,<br>
    <br>
    yves<br>
    <br>
    <br>
    <br>
    <br>
    On 08/13/2014 07:12 PM, Ji-hoon Kim wrote:
    <blockquote
      cite="mid:17741C9F-8FB1-49A1-A908-950DF6205A53@tapir.caltech.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Dear AGORA members,
      <div><br>
      </div>
      <div>I am forwarding the recent updates from the Grackle group
        (attached below). &nbsp;This might interest many of you who want to
        include the Grackle chemistry and cooling library in your code,
        for AGORA simulations or not. &nbsp;</div>
      <div><br>
      </div>
      <div>Sincerely,</div>
      <div>Ji-hoon&nbsp;</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>
        <div><br>
          <div>Begin forwarded message:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div style="margin: 0px;"><span style="font-family:
                'Helvetica'; color: rgb(0, 0, 0);"><b>From: </b></span><span
                style="font-family: 'Helvetica';">Britton Smith &lt;<a
                  moz-do-not-send="true"
                  href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>&gt;<br>
              </span></div>
            <div style="margin: 0px;"><span style="font-family:
                'Helvetica'; color: rgb(0, 0, 0);"><b>Subject: </b></span><span
                style="font-family: 'Helvetica';"><b>new Grackle APIs
                  available</b><br>
              </span></div>
            <div style="margin: 0px;"><span style="font-family:
                'Helvetica'; color: rgb(0, 0, 0);"><b>Date: </b></span><span
                style="font-family: 'Helvetica';">August 13, 2014 at
                2:52:56 AM PDT<br>
              </span></div>
            <div style="margin: 0px;"><span style="font-family:
                'Helvetica'; color: rgb(0, 0, 0);"><b>To: </b></span><span
                style="font-family: 'Helvetica';">"<a
                  moz-do-not-send="true"
                  href="mailto:grackle-cooling-users@googlegroups.com">grackle-cooling-users@googlegroups.com</a>"
                &lt;<a moz-do-not-send="true"
                  href="mailto:grackle-cooling-users@googlegroups.com">grackle-cooling-users@googlegroups.com</a>&gt;<br>
              </span></div>
            <br>
            <div>
              <div dir="ltr">Hi everyone,
                <div><br>
                </div>
                <div>I wanted to make everyone aware of some recent
                  developments with the Grackle. &nbsp;Recently, the main
                  user-facing Grackle functions were rewritten to be
                  pure C instead of C++. &nbsp;This has made it much simpler
                  to create interfaces for simulation codes written in C
                  and Fortran. &nbsp;In fact, a number of new working
                  examples have been added displaying C and Fortran
                  interfaces. &nbsp;All of these new efforts have been put
                  into an open pull request which can be viewed here:</div>
                <div><a moz-do-not-send="true"
href="https://bitbucket.org/grackle/grackle/pull-request/2/wip-moving-chemistry_data-structure-into/diff">https://bitbucket.org/grackle/grackle/pull-request/2/wip-moving-chemistry_data-structure-into/diff</a><br>
                </div>
                <div><br>
                </div>
                <div>Feedback on this PR would be most welcome. &nbsp;A set
                  of functions has been added that allows the users to
                  initialize and call Grackle functions without ever
                  having to deal with the chemistry data and units
                  structs. &nbsp;It would be particularly useful to get
                  feedback on those.</div>
                <div><br>
                </div>
                <div>This also means that the original API from version
                  1.0 has changed. &nbsp;Because of this, I think that once
                  this PR is accepted and documentation has been fixed
                  up, a 2.0 release is probably a good idea. &nbsp;Anyway,
                  comments on the PR or anything I've laid out here is
                  definitely encouraged.</div>
                <div><br>
                </div>
                <div>Also, as a reminder, the official Grackle repo is
                  now located at</div>
                <div><a moz-do-not-send="true"
                    href="https://bitbucket.org/grackle/grackle">https://bitbucket.org/grackle/grackle</a><br>
                </div>
                <div>so make sure to fork that and not the old one.</div>
                <div><br>
                </div>
                <div>Britton</div>
              </div>
              <div><br class="webkit-block-placeholder">
              </div>
              -- <br>
              You received this message because you are subscribed to
              the Google Groups "Grackle Cooling Library Users" group.<br>
              To unsubscribe from this group and stop receiving emails
              from it, send an email to <a moz-do-not-send="true"
                href="mailto:grackle-cooling-users+unsubscribe@googlegroups.com">grackle-cooling-users+unsubscribe@googlegroups.com</a>.<br>
              For more options, visit <a moz-do-not-send="true"
                href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br>
            </div>
          </blockquote>
        </div>
        <br>
        <div apple-content-edited="true"><br>
        </div>
        <div apple-content-edited="true">
          <div apple-content-edited="true">
-------------------------------------------------------------------------<br>
            Ji-hoon Kim<br>
            Postdoctoral Scholar in Astrophysics at&nbsp;Caltech<br>
            <a moz-do-not-send="true" href="http://www.jihoonkim.org">www.jihoonkim.org</a>&nbsp;<br>
            <a moz-do-not-send="true" href="mailto:me@jihoonkim.org">me@jihoonkim.org</a>
            / 1(650)714-2879&nbsp;<br>
-------------------------------------------------------------------------
          </div>
        </div>
      </div>
      To unsubscribe from this group and stop receiving emails from it,
      send an email to <a moz-do-not-send="true"
        href="mailto:santacruzgalaxy-list+unsubscribe@ucsc.edu">santacruzgalaxy-list+unsubscribe@ucsc.edu</a>.<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
santacruzgalaxy-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:santacruzgalaxy-list@ucsc.edu">santacruzgalaxy-list@ucsc.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.ucsc.edu/mailman/listinfo/santacruzgalaxy-list">https://lists.ucsc.edu/mailman/listinfo/santacruzgalaxy-list</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
                                               
---------------------------------------------------------------------
  Dr. Yves Revaz
  Laboratory of Astrophysics
  Ecole Polytechnique F&eacute;d&eacute;rale de Lausanne (EPFL)
  Observatoire de Sauverny     Tel : +41 22 379 24 28
  51. Ch. des Maillettes       Fax : +41 22 379 22 05
  1290 Sauverny             e-mail : <a class="moz-txt-link-abbreviated" href="mailto:Yves.Revaz@epfl.ch">Yves.Revaz@epfl.ch</a>
  SWITZERLAND                  Web : <a class="moz-txt-link-freetext" href="http://people.epfl.ch/yves.revaz">http://people.epfl.ch/yves.revaz</a>
---------------------------------------------------------------------
</pre>
  </body>
</html>