You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It complains about the change in a dummy argument changing another dummy argument at the same time.
There must be some way to override this protection or maybe there is an intrinsic that does this same thing?
Completion(send) Runtime Error: /fs/cgd/data0/erik/ctsm_worktree/mizuroute/components/mizuRoute/route/build/src/nr_utils.f90, line 163: Assignment to A affects dummy argument B
Program terminated by fatal error
/fs/cgd/data0
The text was updated successfully, but these errors were encountered:
OK, it turns out the problem isn't the swap function itself, it's if the swap function is called with arguments that are the same (i.e. a==b). In this case the swap would be OK, but it doesn't really need to be done. So the change needed is to NOT call swap when a==b.
ekluzek
changed the title
NAG compiler doesn't like swap function
NAG compiler complains when swap function is called on identical inputs
Jun 5, 2023
ekluzek
added a commit
to ekluzek/mizuRoute
that referenced
this issue
Jun 5, 2023
The NAG compiler on izumi complains about the following in nr_utils.f90
It complains about the change in a dummy argument changing another dummy argument at the same time.
There must be some way to override this protection or maybe there is an intrinsic that does this same thing?
The text was updated successfully, but these errors were encountered: