forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fortran 2003 and 2008 features

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions
View previous topic :: View next topic  
Author Message
simon



Joined: 05 Jul 2006
Posts: 156

PostPosted: Thu Apr 06, 2017 8:36 pm    Post subject: Fortran 2003 and 2008 features Reply with quote

There are a few features of Fortran 2003 and 2008 that are available in alternative form as Silverfrost extensions. How easy would it be to implement such features following the standards?

Examples include:

GETENV@ for the 2003 intrinsic subroutine GET_ENVIRONMENT_VARIABLE
COMMAND_LINE for the 2003 intrinsic GET_COMMAND
START_PROCESS@ for the 2008 intrinsic EXECUTE_COMMAND_LINE
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5637
Location: Salford, UK

PostPosted: Thu Apr 06, 2017 9:46 pm    Post subject: Reply with quote

Thanks Simon.

GET_COMMAND is already provided. The others two should be fairly easy to add.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 1886
Location: South Pole, Antarctica

PostPosted: Fri Apr 07, 2017 7:14 am    Post subject: Reply with quote

One of third party codes I use written in gFortran started using Fortran 2003 FLUSH, the only what FTN95 does not have being in all other respects superior to gFortran, at least with this specific code (FTN95 found like a billion of small and pretty serious bugs making this code stable and results believable). Though there exist workaround for FLUSH it would be probably good to eventually have it in FTN95
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5637
Location: Salford, UK

PostPosted: Fri Apr 07, 2017 7:33 am    Post subject: Reply with quote

OK I will add FLUSH to the list.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5637
Location: Salford, UK

PostPosted: Wed Dec 12, 2018 4:02 pm    Post subject: Reply with quote

These features have now been added to FTN95 for the next release (after v8.40).
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 1886
Location: South Pole, Antarctica

PostPosted: Thu Dec 13, 2018 9:24 am    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 970
Location: Aerospace Valley

PostPosted: Tue Dec 18, 2018 2:03 pm    Post subject: Reply with quote

are all the 2003/2008 features present in ftn95 gathered together in one place in the documentation ?
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5637
Location: Salford, UK

PostPosted: Tue Dec 18, 2018 4:23 pm    Post subject: Reply with quote

Yes there is a topic on this but it is not up to date.

See FTN95->FTN95 Fortran language extensions->Extensions to FTN95 from the Fortran 2003 standard.
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 970
Location: Aerospace Valley

PostPosted: Sat Jan 12, 2019 6:22 am    Post subject: Reply with quote

In the on-line manual it's here:-
https://silverfrost.com/ftn95-help/netprog/f200xextensions.aspx
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "


Last edited by John-Silver on Sat Jan 12, 2019 6:28 am; edited 1 time in total
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 970
Location: Aerospace Valley

PostPosted: Sat Jan 12, 2019 6:27 am    Post subject: Reply with quote

F2003 and F2008 are really a bit of a mystery (to me at least)

I guess there is no real impetusł/market to 'update' FTN95 to FTN200X.

.... if it's even useful enough to do it !
_________________
''Computers are incredibly rigid. They question nothing. Especialy input data.Human beings are incredibly trusting of computers and don't check input data. Together they are capable of cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2013
Location: Sydney

PostPosted: Sat Jan 12, 2019 7:47 am    Post subject: Reply with quote

For me, the most important extension to Fortran 95 was not even part of F2003. This was TR15581 released in 1998 then 2001 which extended the functionality of ALLOCATE. The ability to return a modified allocatable array in a routine call provides useful functionality for managing allocatable arrays, especially extending their size. (the approach in FTN95 is more awkward)

As well as new coding structures, F2003 and F2008 introduced a number of new intrinsic functions, some of which are provided in FTN95. There are a number of useful functions that are yet to be included, such as SIZEOF, Compiler_Version, Compiler_Options as well as those previously mentioned in this thread. Many of these functions do not require the new features in F2003 or F2008.

Support for the exceptions of the IEEE Floating Point Standard (IEEE 1989) is also pre F2003, although I don't know the significance of this requirement.

Support for ISO_FORTRAN_ENV module would provide for improved portability and conformity with the newer Fortran approach.

The other main change in recent Fortran usage is support for OpenMP, which is not part of the Fortran Standard. FTN95 Ver 8 has introduced some multi-thread functionality, but some of the OpenMP structures would help, at least to OpenMP version 3. Support for the concept of shared and private variables/arrays is essential.

It would be good if some of these could be scheduled for inclusion in FTN95, although given the experience of 64-bit, that may be a big ask !

The big strengths of FTN95 remains it's Checkmate/SDBG functionality and support for Clearwin+.

John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5637
Location: Salford, UK

PostPosted: Sat Jan 12, 2019 9:16 am    Post subject: Reply with quote

John

Can you provide a short and simple list of your desired new features in order of importance to you.
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2013
Location: Sydney

PostPosted: Wed Jan 16, 2019 11:36 am    Post subject: Reply with quote

Paul,

Thanks for the offer. I will review past posts and provide my ordered list.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group