matthewholman / assist

ASSIST is a software package for ephemeris-quality integrations of test particles.
https://assist.readthedocs.io/
GNU General Public License v3.0
24 stars 10 forks source link

Add assist_ephem_init and assist_get_particle_with_error to C header #84

Closed spenczar closed 1 year ago

spenczar commented 1 year ago

When working with the C library, these two functions are pretty desirable.

For initializing an assist_ephem, the only option currently is assist_ephem_create, which prints to stderr and returns a null pointer. Returning an error code lets the caller decide how to present the error in a broader application context where stderr might not be the right venue.

assist_get_particle_with_error is similar, providing an alternative to assist_get_particle.