Error when trying to initialize fortran: type of actual argument differs from the type of the dummy argument


#1

I keep receiving a type argument error when trying to initialize the fortran interface using the simple command : h5open_f(error).
I’ve created the variables and followed examples and cannot understand the issue.
When running a .f90 script that is a stand alone program, the libraries work fine but when trying to create a subroutine within a module, I receive the type argument error, after running the command ‘make’ to compile.

Any ideas on what the issue may be?

P.S I’ve defined USE HDF5 at the very top of the script, it’s just not viewable in the screenshot.