Skip to content

Commit

Permalink
Update fortran_ex.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WonyoungCho committed Nov 25, 2018
1 parent b876d16 commit 0389beb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/fortran_ex.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,15 +405,13 @@ program array_reshape
print *, '------------'
b = reshape(a,(/2,2/),order=(/2,1/))
do i=1,2
print *, b(i,:)
end do
print *, b(1,:)
print *, b(2,:)
print *, '------------'
c = reshape(a,(/2,3/),pad=(/0/),order=(/2,1/))
do i=1,2
print *, c(i,:)
end do
print *, c(1,:)
print *, c(2,:)
end program array_reshape
```
Expand Down

0 comments on commit 0389beb

Please sign in to comment.