Re: debugging fortran mex code
- From: Markus <no@xxxxxxxxx>
- Date: Tue, 24 Jan 2006 09:23:56 +0200
Greg Kaplan wrote:
hi - my fortran program compiles to mex and then runs ok in matlab but now i need to debug the actual fortran routine. because all of the input is coming from values generated in matlab, i need to do it during run time in matlab. the tiny amount of info in the online documentation doesnt seem to be working. how can i debug my fortran program by running the calling program in matlab?
There may be more elegant methods to accomplish this but I just always use WRITE(*,*)"x=",x statements to inspect my variables in Fortran code. Works for following the program flow also.
also, how do i know if the %val(pointer) command is working for my version of fortran. im just assuming that it is, but the documentation doesnt tell me how to find out?
I faced this problem also a while ago. In my case I simply could not make %val to work so I figured it is not supported by compiler.
markus .
- Follow-Ups:
- Re: debugging fortran mex code
- From: Greg Kaplan
- Re: debugging fortran mex code
- References:
- debugging fortran mex code
- From: Greg Kaplan
- debugging fortran mex code
- Prev by Date: imfinfo reports 16 bit tiff as 32 bit?
- Next by Date: Re: fm demod
- Previous by thread: debugging fortran mex code
- Next by thread: Re: debugging fortran mex code
- Index(es):
Relevant Pages
|