wrapper utility for fortran memory allocation