https://devhubby.com/thread/how-can-i-pass-a-fortran-pointer-to-a-subroutine