FORALL Construct

Example

FORALL (i = 1 : 3, j = 1 : 3, i > j)

arr1(i, j) = ABS(i - j) + 3

...

END FORALL

FORALL Statement

Example

FORALL(i = 1:3, j = 1:3, i>j) arr1(i, j) = ABS(i - j) + 3

'Programming > Fortran' 카테고리의 다른 글

Assumed-Shape Dummy Arrays  (0) 2008.12.16
Explicit-Shape Dummy Arrays  (0) 2008.12.15
Initializing rank-2 arrays  (0) 2008.12.04
모듈을 이용한 자료 공유(sharing data using moduel)  (0) 2008.12.04
Error Handling in Subroutines  (0) 2008.12.03

+ Recent posts