[santacruzgalaxy-list] Fwd: new Grackle APIs available
Yves Revaz
yves.revaz at epfl.ch
Fri Aug 22 08:41:26 PDT 2014
Dear all Grackle users,
For those of you who wants to use the new grackle wrapper designed to
interface with C,
I've found a tiny bug.
In the file grackle_wrapper.cxx, we need to specify the velocity units
in the structure my_units:
velocity_units = my_units.a_units * my_units.length_units
/my_units.time_units;
* my_units.velocity_units = velocity_units;*
Including the previous change and setting:
my_chemistry.with_radiative_cooling = 0;
my_chemistry.primordial_chemistry = 0;
and un-commenting:
a_value = auni / my_units.a_units;
The interface works fine for me.
Cheers,
yves
On 08/13/2014 07:12 PM, Ji-hoon Kim wrote:
> Dear AGORA members,
>
> I am forwarding the recent updates from the Grackle group (attached
> below). This might interest many of you who want to include the
> Grackle chemistry and cooling library in your code, for AGORA
> simulations or not.
>
> Sincerely,
> Ji-hoon
>
>
>
>
>
> Begin forwarded message:
>
>> *From: *Britton Smith <brittonsmith at gmail.com
>> <mailto:brittonsmith at gmail.com>>
>> *Subject: **new Grackle APIs available*
>> *Date: *August 13, 2014 at 2:52:56 AM PDT
>> *To: *"grackle-cooling-users at googlegroups.com
>> <mailto:grackle-cooling-users at googlegroups.com>"
>> <grackle-cooling-users at googlegroups.com
>> <mailto:grackle-cooling-users at googlegroups.com>>
>>
>> Hi everyone,
>>
>> I wanted to make everyone aware of some recent developments with the
>> Grackle. Recently, the main user-facing Grackle functions were
>> rewritten to be pure C instead of C++. This has made it much simpler
>> to create interfaces for simulation codes written in C and Fortran.
>> In fact, a number of new working examples have been added displaying
>> C and Fortran interfaces. All of these new efforts have been put
>> into an open pull request which can be viewed here:
>> https://bitbucket.org/grackle/grackle/pull-request/2/wip-moving-chemistry_data-structure-into/diff
>>
>> Feedback on this PR would be most welcome. 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. It would be particularly useful to get feedback on those.
>>
>> This also means that the original API from version 1.0 has changed.
>> 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. Anyway, comments on the PR or anything I've laid out here is
>> definitely encouraged.
>>
>> Also, as a reminder, the official Grackle repo is now located at
>> https://bitbucket.org/grackle/grackle
>> so make sure to fork that and not the old one.
>>
>> Britton
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Grackle Cooling Library Users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to grackle-cooling-users+unsubscribe at googlegroups.com
>> <mailto:grackle-cooling-users+unsubscribe at googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> -------------------------------------------------------------------------
> Ji-hoon Kim
> Postdoctoral Scholar in Astrophysics at Caltech
> www.jihoonkim.org <http://www.jihoonkim.org>
> me at jihoonkim.org <mailto:me at jihoonkim.org> / 1(650)714-2879
> -------------------------------------------------------------------------
> To unsubscribe from this group and stop receiving emails from it, send
> an email to santacruzgalaxy-list+unsubscribe at ucsc.edu
> <mailto:santacruzgalaxy-list+unsubscribe at ucsc.edu>.
>
>
> _______________________________________________
> santacruzgalaxy-list mailing list
> santacruzgalaxy-list at ucsc.edu
> https://lists.ucsc.edu/mailman/listinfo/santacruzgalaxy-list
--
---------------------------------------------------------------------
Dr. Yves Revaz
Laboratory of Astrophysics
Ecole Polytechnique Fédé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 : Yves.Revaz at epfl.ch
SWITZERLAND Web : http://people.epfl.ch/yves.revaz
---------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucsc.edu/pipermail/santacruzgalaxy-list/attachments/20140822/77f8e92b/attachment.html
More information about the santacruzgalaxy-list
mailing list