Category "fortran"

f2py compilation error with type(c_ptr) from iso_c_binding

Summary I am trying to write a model using Fortran and I need to use a function to integrate (closed limits). I tried working with fgsl and the standalone scrip

Difference between Fortran's "abstract" and "normal" interfaces

I'm trying to understand the difference between abstract interfaces and "normal" interfaces. What makes an interface abstract? When is each one necessary? Supp

How to find NaN in an array and stop once found?

Say, I want a routine to stop once a not-a-number is found in an array. How can I do this? if (array(i) .eq. NA) ... seems not work. The array is an array of fl

f2py does not properly import, despite successfully compiling

I am successfully compiling my Fortran subroutine with f2py. However, a folder is created as well as a pyd file. If I do not put the created pyd file in the g