forall and do loop
- From: aeroguy <sukhbinder.singh@xxxxxxxxx>
- Date: Fri, 27 Jul 2007 05:14:10 -0000
REAL :: DS(100),UTA(100),STA(100),ONE
ONE = 1.0000
! First case
DO I=1,NE
UTA(I)=DS(I)
STA(I)=ONE
END DO
! second case
FORALL(I=1:NE) UTA(I)=DS(I)
STA=ONE
In this two follwoing code which will be more efficient? Efficent in
execution time and in parallel processing?
regards
.
- Follow-Ups:
- Re: forall and do loop
- From: glen herrmannsfeldt
- Re: forall and do loop
- From: Sebastian Hanigk
- Re: forall and do loop
- Prev by Date: Re: Matrix multiplication using subarrays?
- Next by Date: Re: forall and do loop
- Previous by thread: Re: C/C++ speed optimization bible/resources/pointers needed!
- Next by thread: Re: forall and do loop
- Index(es):