I've looked at the standard documents a bit more carefully. They are SO complicated.
The most important thing I want is a command line interface, i.e., COMMAND_ARGUMENT_COUNT and GET_COMMAND_ARGUMENT. They are not in the Fortran 90 and Fortran 95 standards, but they are in Fortran 2003, so that...
In this context, "modern" means "in frequent current use". In other words, what a modern (current) software developer probably has avaiable.
I provide executables for Microsoft windows (created using gfortran and MingW, statically linked, so they don't need any DLLs) and (Ubuntu) Linux...
One minor note: If you can, you may want to re-order the subscripts of your arrays, so that the first two subscripts are reversed, because the implied do loop would put things in the wrong order for what you want. In particular, storage order increments the first index first (i.e., incrementing...
Sigh - this would be so easy in APL.
How about an implied do loop array)
(/(i, L=1, n)/)
Then RESHAPE it...
If the compiler is good enough, it would optimize that with an array operation.
I'll let you figure out the details.
It's even possible that the most modern FORTRANS already have a...
(I already tried posting to the old Fortran Usenet group - didn't realize nobody reads it anymore. I guess this is the active Fortran forum - right? I hope it isn't too technical a question.)
How universal are these modern Fortran Features?
1. I'm updating my Fortran code that processes other...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.