View previous topic :: View next topic |
Author |
Message |
Kenneth_Smith
Joined: 18 May 2012 Posts: 730 Location: Hamilton, Lanarkshire, Scotland.
|
Posted: Wed Oct 30, 2024 12:11 pm Post subject: 'USE, INTRINSIC ::' vs 'USE' |
|
|
The following program compiles and runs as expected with FTN95.
Code: | program p
use iso_fortran_env, only: dp => real64
print*, dp
end
|
The alternative “modern” equivalent (I think this is the case) does not compile successfully with FTN95.
Code: | program p
use, intrinsic :: iso_fortran_env, only: dp => real64
print*, dp
end
|
Am I correct in assuming that simply converting the “modern” form to the simpler USE with no reference to INTRINSIC will have no unexpected side effects? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8062 Location: Salford, UK
|
Posted: Wed Oct 30, 2024 2:19 pm Post subject: |
|
|
Ken
INTRINSIC may now be used (I tested against v9.04 and v9.05). To my knowledge there are no side effects either way. |
|
Back to top |
|
|
Kenneth_Smith
Joined: 18 May 2012 Posts: 730 Location: Hamilton, Lanarkshire, Scotland.
|
Posted: Thu Oct 31, 2024 9:25 am Post subject: |
|
|
Thanks Paul, I am a little behind the times at V9.03 - I will fix that! |
|
Back to top |
|
|
|