The consequence of this is that the variable stateTypeSplit = 2 no longer exists after the first iteration of the stateTypeSplit loop, and thus the variable value can no longer be accessed for case selection, checks, etc. after this point.
Possible solution: rename the construct to stateTypeSplitLoop. Could this have any unforeseen side effects?
As a variable: https://github.com/NCAR/summa/blob/bad84362e0f7c6473e1b26d0ffd033883bd55e49/build/source/engine/opSplittin.f90#L123 https://github.com/NCAR/summa/blob/bad84362e0f7c6473e1b26d0ffd033883bd55e49/build/source/engine/opSplittin.f90#L472 https://github.com/NCAR/summa/blob/bad84362e0f7c6473e1b26d0ffd033883bd55e49/build/source/engine/opSplittin.f90#L479
As a construct name: https://github.com/NCAR/summa/blob/bad84362e0f7c6473e1b26d0ffd033883bd55e49/build/source/engine/opSplittin.f90#L484 https://github.com/NCAR/summa/blob/bad84362e0f7c6473e1b26d0ffd033883bd55e49/build/source/engine/opSplittin.f90#L938
The consequence of this is that the variable
stateTypeSplit
= 2 no longer exists after the first iteration of the stateTypeSplit loop, and thus the variable value can no longer be accessed for case selection, checks, etc. after this point.Possible solution: rename the construct to
stateTypeSplitLoop
. Could this have any unforeseen side effects?