I am trying to make a wrapper for a Fortran function with f2py from this code: http://arxiv.org/e-print/1601.07458v1 . It is from a paper concerning reduced density matrices, (http://arxiv.org/abs/1601.07458v1, and the code works fine when running it in fortran.
Now trying to make a wrapper with f2py on the Fortran file "partial_trace.f90", results in
/tmp/tmpBwIuHh/src.linux-x86_64-2.7/partial_tracemodule.c:325:15: error: invalid type argument of unary ‘*’ (have ‘int’)
w_Dims[0]=2**nqb;
^
I am pretty unfamiliar with both Fortran and C, and couldn't find a solution on google. What could be the reason for the error? I suspect its the use of a Fortran derived type, but I'm not so sure about it.
Any hints would be appreciated!
edit: - the fortran code (tar archive): arxiv.org/e-print/1601.07458v1 - the command I ran: f2py -c partial_trace.f90 -m partial_trace - its output: pastebin.com/g7QNnaCR