About Python callbacks

It is convenient to specify the myfunc in Python
However, a callback to Python is costly, especially when done a large number of times (for every grid point)
Avoid such callbacks; vectorize callbacks
The Fortran routine should actually direct a back to Python (i.e., do nothing...) for a vectorized operation
Let's do this for illustration

previousnexttable of contents