Skip to content

Instantly share code, notes, and snippets.

@blippy
Created December 20, 2015 09:22
Show Gist options
  • Save blippy/e7add5016aadb109e909 to your computer and use it in GitHub Desktop.
Save blippy/e7add5016aadb109e909 to your computer and use it in GitHub Desktop.
Using ALLOCATABLE with hard-coded data
program hard
double precision, allocatable :: a(:)
a = [10 , 12, 13] ! no need to count size beforehand
print *, a
end program hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment