Shim for the options struct of FINUFFT.
The rest of the FINUFFT C interface is called directly from finufft.F90 through iso_c_binding, but finufft_opts has to be filled by finufft_default_opts before a field can be set.
- Note
- On ABI stability: the struct is allocated, filled and released here, and Fortran only ever holds an opaque pointer to it, so neither its layout nor its size has to be mirrored on that side. Neither is stable across releases, as FINUFFT 2.6.0 inserts a field ahead of the trailing function pointers. For the same reason the mirrors FINUFFT ships are no help: include/finufft.fh is Fortran 77 and declares those pointers as default integers, which leaves it 16 bytes short of the C struct.
Definition in file finufft_low.c.