Open chrispbradley opened 7 years ago
I would vote for using the Fortran 2008 feature NEWUNIT
to obtain and open a file unit which is unused. It is supported by all major compilers.
Syntax:
OPEN(NEWUNIT=NodeFileUnit, FILE=CHAR(VFilename)//".NODE", ACTION="read")
I have no issue with allowing the use of NEWUNIT. The GNU, Intel, Cray, NAG and PGI compilers support this (which is pretty much all the ones we might care about). I'm not aware of any performance implications with this. Anybody else have any objections?
Issue for the discussion of what Fortran 2008 features can be used in OpenCMISS. In general, the use of language features depends on performance implications and the support of that feature by the various Fortran compilers. A useful summary of Fortran language features that have been implemented by the various compilers can be found here:
http://fortranwiki.org/fortran/show/Fortran+2008+status