npadmana / DistributedFFT

6 stars 2 forks source link

Replace isNullPlan extern with is_c_nil #62

Closed ronawho closed 4 years ago

ronawho commented 4 years ago

isNullPlan existed to check if a plan was NULL with the notion that since fftw_plan is opaque, we couldn't check for null-ness in Chapel. This switches to using is_c_nil, which under the covers casts to a c_void_ptr (void*) and checks if that is NULL.