mirror of
https://github.com/VictorEijkhout/TheArtOfHPC_vol3_cppf08programming.git
synced 2026-01-24 22:44:48 +09:00
27 lines
571 B
Fortran
27 lines
571 B
Fortran
!****************************************************************
|
|
!***
|
|
!*** This file belongs with the course
|
|
!*** Introduction to Scientific Programming in C++/Fortran2003
|
|
!*** copyright 2017-2021 Victor Eijkhout eijkhout@tacc.utexas.edu
|
|
!***
|
|
!*** basic.F90 : pointer to real
|
|
!***
|
|
!****************************************************************
|
|
|
|
|
|
Program PointAtReal
|
|
|
|
implicit none
|
|
|
|
!!codesnippet pointsetprint
|
|
real,target :: x
|
|
real,pointer :: point_at_real
|
|
|
|
x = 1.2
|
|
point_at_real => x
|
|
print *,point_at_real
|
|
!!codesnippet end
|
|
|
|
end Program PointAtReal
|
|
|