Replace "derf()" with standard "erf()" in SBM MP scheme#1246
Closed
davegill wants to merge 1 commit intowrf-model:release-v4.2.1from
Closed
Replace "derf()" with standard "erf()" in SBM MP scheme#1246davegill wants to merge 1 commit intowrf-model:release-v4.2.1from
davegill wants to merge 1 commit intowrf-model:release-v4.2.1from
Conversation
KEYWORDS: derf, SBM SOURCE: Nicolas Baldeck (Edgehill University) DESCRIPTION OF CHANGES: Problem: Using `derf` for a double precision error function is not standard, and causes an error with PGI 19.10: ``` 441044-PGF90-S-0038-Symbol, derf, has not been explicitly declared (module_mp_SBM_polar_radar.f90) 441136- 0 inform, 0 warnings, 1 severes, 0 fatal for calc_dc_wet_snow ``` Solution: The Fortran standard allows the TKR (type, kind, rank) of an argument to determine which intrinsic function is being used. The `erf` function is part of the Fortran 2008 standard, and has been previously available for GNU, Intel, and PGI. ISSUE: Fixes wrf-model#1245 "PGI complains about Derf symbol in module_mp_SBM_polar_radar.F" LIST OF MODIFIED FILES: modified: phys/module_mp_SBM_polar_radar.F TESTS CONDUCTED: 1. Before mods, the PGI compiler complained. After fix, code builds and runs. 2. Status of jenkins???
Contributor
Author
|
@JS-WRF-SBM @dudhia @weiwangncar |
Contributor
Author
|
@nbald |
Contributor
Author
|
Jenkins results: |
Contributor
@davegill @nbald |
Contributor
Author
|
@JS-WRF-SBM |
|
I confirm it builds now with PGI 19.10 @davegill I am not affiliated with Edgehill University. You can attribute to Nicolas Baldeck (OpenMeteoData) |
|
Is this a duplicate? #1183 |
Contributor
Author
|
@nbald |
Contributor
Author
|
Look at #1183 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TYPE: bug fix
KEYWORDS: derf, SBM
SOURCE: Nicolas Baldeck (OpenMeteoData)
DESCRIPTION OF CHANGES:
Problem:
Using
derffor a double precision error function is not standard, and causes an errorwith PGI 19.10:
Solution:
The Fortran standard allows the TKR (type, kind, rank) of an argument to determine which
intrinsic function is being used. The
erffunction is part of the Fortran 2008 standard, andhas been previously available for GNU, Intel, and PGI.
The scheme's original developer has approved these mods.
ISSUE:
Fixes #1245 "PGI complains about Derf symbol in module_mp_SBM_polar_radar.F"
LIST OF MODIFIED FILES:
modified: phys/module_mp_SBM_polar_radar.F
TESTS CONDUCTED:
compilers will fail, but that standard is 12 years old, so not too much sympathy.