September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -1,5 +1,5 @@
program Concat_Arrays
implicit none
implicit none
! Note: in Fortran 90 you must use the old array delimiters (/ , /)
integer, dimension(3) :: a = [1, 2, 3] ! (/1, 2, 3/)
@ -9,13 +9,9 @@ implicit none
allocate(c(size(a)+size(b)))
c(1 : size(a)) = a
c(size(a)+1 : size(a)+size(b)) = b
write(*,*) c
print*, c
! alternative
d = [a, b] ! (/a, b/)
write(*,*) d
deallocate(c)
deallocate(d)
print*, d
end program Concat_Arrays