-
-
Notifications
You must be signed in to change notification settings - Fork 266
MRE for pot3d --fast compilation #6611
Copy link
Copy link
Closed
Labels
--fastIssues related to the `--fast` compiler optionIssues related to the `--fast` compiler optionPOT3DIssues or pull requests related to compiling `predsci/POT3D`Issues or pull requests related to compiling `predsci/POT3D`bugSomething isn't workingSomething isn't working
Metadata
Metadata
Assignees
Labels
--fastIssues related to the `--fast` compiler optionIssues related to the `--fast` compiler optionPOT3DIssues or pull requests related to compiling `predsci/POT3D`Issues or pull requests related to compiling `predsci/POT3D`bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
module xx type :: rp1d real, dimension(:), pointer :: f end type type :: sds integer, dimension(3) :: dims type(rp1d), dimension(3) :: scales real, dimension(:), pointer :: f end type end module subroutine sub() use xx real, dimension(:), pointer :: x call sub_to_allocate(x) print *, "x in sub = ", x deallocate(x) contains subroutine sub_to_allocate(x) use xx real, dimension(:), pointer :: x type(sds) :: s allocate(s%scales(1)%f(2)) x => s%scales(1)%f x(1) = 2.0 x(2) = 1.0 print *, "x = ", x end subroutine end subroutine program derived_types_43 implicit none call sub() end program