Skip to content

NoahMP unary operator bug fix 2#33

Merged
cenlinhe merged 1 commit intoNCAR:developfrom
davegill:unary_operator_bf2
Jan 28, 2022
Merged

NoahMP unary operator bug fix 2#33
cenlinhe merged 1 commit intoNCAR:developfrom
davegill:unary_operator_bf2

Conversation

@davegill
Copy link
Contributor

TYPE: bug fix

SOURCE: Patricia Balle (HPE), internal

DESCRIPTION OF CHANGES:
Problem:
Several more occurrences of a * -b were caught by the Cray compiler.

Solution:
As before, the standard requires parentheses: a * (-b).

LIST OF MODIFIED FILES:
modified: module_sf_noahmplsm.F

TYPE: bug fix

SOURCE: Patricia Balle (HPE), internal

DESCRIPTION OF CHANGES:
Problem:
Several _more_ occurrences of `a * -b` were caught by the Cray compiler.

Solution:
As before, the standard requires parentheses: `a * (-b)`.

LIST OF MODIFIED FILES:
modified:   module_sf_noahmplsm.F
@davegill
Copy link
Contributor Author

@cenlinhe @pkb99
Cenlin,
Another few that the Cray/HPE engineers have sent in.

@cenlinhe cenlinhe merged commit 39357fe into NCAR:develop Jan 28, 2022
davegill pushed a commit to wrf-model/WRF that referenced this pull request Feb 3, 2022
TYPE: bug fix

KEYWORDS: unary operator, Noahmp

SOURCE: Internal

DESCRIPTION OF CHANGES:
Problem:
Found more occurrences of `a* -b` in Noahmp. A space is in between `*` and `-1`. OK even for Cray, but it is still non-standard.

Solution:
The same solution is applied: add parentheses: `a * (-b)`.

ASSOCIATED REPOSITORY CHANGE:
NCAR/noahmp#33

LIST OF MODIFIED FILES:
modified: phys/noahmp

TESTS CONDUCTED: 
1. More code is fixed.
2. Jenkins tests are all passing.
vlakshmanan-scala pushed a commit to scala-computing/WRF that referenced this pull request Apr 4, 2024
TYPE: bug fix

KEYWORDS: unary operator, Noahmp

SOURCE: Internal

DESCRIPTION OF CHANGES:
Problem:
Found more occurrences of `a* -b` in Noahmp. A space is in between `*` and `-1`. OK even for Cray, but it is still non-standard.

Solution:
The same solution is applied: add parentheses: `a * (-b)`.

ASSOCIATED REPOSITORY CHANGE:
NCAR/noahmp#33

LIST OF MODIFIED FILES:
modified: phys/noahmp

TESTS CONDUCTED: 
1. More code is fixed.
2. Jenkins tests are all passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants