Skip to content

Commit

Permalink
Update fortran_ex2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WonyoungCho committed Dec 11, 2018
1 parent f2e1eda commit 55b2808
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/fortran_ex2.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ subroutine sub(ra,rb,rc,j,k)
print*,'rc=',rc(j,k)
end subroutine sub
```
`Subroutine`에 dummy 배열 사용이 가능하다.단, 차원과 형식이 일치해야 하며 `program`에 명시해 주어야 한다.

`Subroutine`에 dummy 배열 사용이 가능하다.단, 차원과 형식이 일치해야 하며 `program`에 명시해 주어야 한다. 배열의 shape을 `j`값처럼 ***argument***로 받아와 사용할 수 있고, `*`을 사용하여 배열 size의 마지막 index를 지정하지 않고도 사용이 가능하다.

```sh
$ ./a
Expand Down

0 comments on commit 55b2808

Please sign in to comment.