CMEPS icon indicating copy to clipboard operation
CMEPS copied to clipboard

It may be faster here to define a new variable lscale and do

Open jedwards4b opened this issue 5 years ago • 0 comments

It may be faster here to define a new variable lscale and do

if(present(scale)) then
  lscale = scale
else
  lscale = 1.0R8
endif

in this way you avoid the if inside the loop which prevents vectorization.

Originally posted by @jedwards4b in https://github.com/ESCOMP/CMEPS/pull/129#discussion_r520611039

jedwards4b avatar Nov 10 '20 17:11 jedwards4b