Created
December 20, 2015 09:22
-
-
Save blippy/e7add5016aadb109e909 to your computer and use it in GitHub Desktop.
Using ALLOCATABLE with hard-coded data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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