This is for storing universal derived field, so that one can call func(gid, "Dens", data) and func(gid, "MomX", data) to get different derived field by passing different field name.
If one set field_define_type == "derived_field", the order libyt will use the derived function:
Add New Prototype For Derived Field Function in Struct
yt_field
yt_field
struct, add data memberderived_func_with_name
void (*derived_func_with_name) (long, char *, double *);
func(gid, "Dens", data)
andfunc(gid, "MomX", data)
to get different derived field by passing different field name.field_define_type == "derived_field"
, the orderlibyt
will use the derived function:derived_func
derived_func_with_name