milibopp / jelly

Abstraction layer for running numerical hydrodynamics software
1 stars 0 forks source link

Report back IDs assigned to cells/particles #35

Closed milibopp closed 10 years ago

milibopp commented 10 years ago

At the moment, the calling code that generates an input file has no way to know which IDs have been assigned to a cell. While one might argue that this is an implementation detail, some tedious interactions with Arepo may require your script to deal with IDs. In particular, I want to express some hierarchical relations between particles in a JSON file and parse this from within in the C code.

I figure, it should be fairly easy to separate the ID assignment from the IC file generation in the API. Maybe we should to this in a backwards-compatible fashion. Then the question is, how the information is returned to the calling code. One option would be to give the cells an ID as attribute but I'm not sure whether that's the best way to do it.

milibopp commented 10 years ago

Closing as #36 has been merged.