Use brackets to ensure array operation only done once
David Dickinson
Branch: micro/small_overhead_improvement_gs2_transforms
Branch: next
Merged
Merged pull request
Merged in micro/small_overhead_improvement_gs2_transforms (pull request #102)
Merged in micro/small_overhead_improvement_gs2_transforms (pull request #102)
Move main factor into array operation and change loop to just do correction for ik=1 case.
Â
Scalasca says this change halved the exclusive time for this routine.