Conversation
…lc (had nan assignment after init value)
Owner
Author
|
@mgduda @weiwangncar @dudhia @kkeene44 @smileMchen |
Collaborator
|
@ldfowler58 Just bringing you into the conversation... |
|
@davegill Do you mean SH2OIN becomes 10^38? |
Owner
Author
|
|
@davegill I will rephrase my question: did you set this field, SH2OIN, to a huge number, or this field contains huge numbers as a result of changing other fields to huge numbers? |
davegill
added a commit
to wrf-model/WRF
that referenced
this pull request
Mar 26, 2019
TYPE: bug fix
KEYWORDS: Noah LSM sh2o unified MPAS
SOURCE: internal
DESCRIPTION OF CHANGES:
Problem:
A single variable was used as two calling arguments in a subroutine. Inside the subroutine, the
separate names were pointing to the same memory and were treated differently.
Solution:
Since the two instances of the array were treated as IN and OUT, a copy of the array was made and
passed in as separately named input field. There were two locations to fix.
LIST OF MODIFIED FILES:
M phys/module_sf_noahlsm.F
TESTS CONDUCTED:
1. Comparing the results before vs after show no bit-for-bit differences (what we wanted).
```
../../external/io_netcdf/diffwrf INIT_develop/wrfout_d01_2000-01-24_12:00:00 INIT_FIX_dev/wrfout_d01_2000-01-24_12:00:00
Just plot F
Diffing INIT_develop/wrfout_d01_2000-01-24_12:00:00 INIT_FIX_dev/wrfout_d01_2000-01-24_12:00:00
Next Time 2000-01-24_12:00:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:03:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:06:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:09:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:12:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
```
2. When the code was instrumented, the only differences were diagnostic only. No differences in any other WRF output fields. See davegill#5 (github.com/davegill/WRF PR 5).
mbartolini18
pushed a commit
to mbartolini18/WRFV4_spp
that referenced
this pull request
Jul 13, 2022
TYPE: bug fix
KEYWORDS: Noah LSM sh2o unified MPAS
SOURCE: internal
DESCRIPTION OF CHANGES:
Problem:
A single variable was used as two calling arguments in a subroutine. Inside the subroutine, the
separate names were pointing to the same memory and were treated differently.
Solution:
Since the two instances of the array were treated as IN and OUT, a copy of the array was made and
passed in as separately named input field. There were two locations to fix.
LIST OF MODIFIED FILES:
M phys/module_sf_noahlsm.F
TESTS CONDUCTED:
1. Comparing the results before vs after show no bit-for-bit differences (what we wanted).
```
../../external/io_netcdf/diffwrf INIT_develop/wrfout_d01_2000-01-24_12:00:00 INIT_FIX_dev/wrfout_d01_2000-01-24_12:00:00
Just plot F
Diffing INIT_develop/wrfout_d01_2000-01-24_12:00:00 INIT_FIX_dev/wrfout_d01_2000-01-24_12:00:00
Next Time 2000-01-24_12:00:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:03:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:06:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:09:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
Next Time 2000-01-24_12:12:00
Field Ndifs Dims RMS (1) RMS (2) DIGITS RMSE pntwise max
```
2. When the code was instrumented, the only differences were diagnostic only. No differences in any other WRF output fields. See davegill/WRF#5 (github.com/davegill/WRF PR 5).
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.
/gpfs/fs1/scratch/gill/WRF_SHARED_PHYSICS/WRF/
After bug fix, ran a test with previous vs instrumented code. The instrumented code had every variables that was modified between WRF and MPAS initialized as HUGE. The only two fields that are
different between the two short runs are two diagnostic fields: SMCREL and NOAHRES.