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
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


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

PostPosted: Thu Aug 12, 2021 10:26 am    Post subject: Reply with quote

FLOOR and CEILING have now been added for the next release of FTN95.
Back to top
View user's profile Send private message AIM Address
simon



Joined: 05 Jul 2006
Posts: 207

PostPosted: Wed Feb 23, 2022 4:22 am    Post subject: Reply with quote

Hi Paul,
Would it be difficult to add SOURCE= as an optional argument to ALLOCATE? I believe it is a 2003 standard.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Feb 23, 2022 8:30 am    Post subject: Reply with quote

Simon

I don't know off hand but I will add it to the list for investigation.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


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

PostPosted: Mon Feb 28, 2022 5:38 pm    Post subject: Reply with quote

At first sight, implementing SOURCE= may not be very difficult but "allocate on assignment" is already provided. It is similar and more direct.

Code:
program main
 integer a(10)
 integer,allocatable::b(:)
 a = 7
 b = a
 print*,b
end program main
Back to top
View user's profile Send private message AIM Address
simon



Joined: 05 Jul 2006
Posts: 207

PostPosted: Tue Mar 01, 2022 4:50 am    Post subject: Reply with quote

Many thanks Paul. The allocate on assignment will work for most instances I need.
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
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
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