-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I/O issues #22
Comments
Hi @jabl , Thank you for your encouraging and worm words, and for raising the point about the IO operations. You are right. The interfacing with MATLAB (and maybe with other languages in the future) complicates the IO. For example, the MEX of MATLAB hijacks the standard output, so that anything printed to the standard output using I will improve the code according to your suggestions, especially the one concerning Many thanks again! Best regards, |
Hi @jabl ,
This is absolutely right. I have made revisions accordingly. See Thank you for telling me if there are still problems with my implementation.
I agree. However, I refrain from implementing file opening/closing in this way for the moment. The reason is as follows.
A callback procedure is a good idea. I will discuss it with the SciPy community. Many thanks again! Best regards, |
Hello,
I recently became aware of this project and took a look, and I have to say it's a really nice example of well written modern Fortran. One thing that raised my eyebrow was the handling of I/O, which seems a bit convoluted. Part of this might be due to the need to interface with matlab (a topic on which I'm not familiar with myself), but some issues are, I think, fixable.
OUTUNIT = 42
). This can lead to issues if an application that uses PRIMA accidentally uses the same unit number for it's own use. Luckily modern Fortran has a solution for this, namely thenewunit=
specifier for theopen
statement. By usingnewunit=
the Fortran runtime library assigns a unit number which is guaranteed to not be in use. Similar tofopen
in MATLAB and C, oropen
in POSIX.The text was updated successfully, but these errors were encountered: