Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire weather refactor (non-b4b) #1215

Merged
merged 36 commits into from
Aug 29, 2024
Merged

Conversation

adrifoster
Copy link
Contributor

@adrifoster adrifoster commented Jun 18, 2024

This provides a second refactor to the SPITFIRE set of modules, adding effective windspeed and methods to calculate it to the fire weather class.

Description:

I made effective wind speed (previously a patch-level variable that was set to be the same value across every patch in the same site), an attribute of the (currently site-level) fire weather class.

Future updates can make the fire weather class a patch attribute if needed.

Expectation of Answer Changes:

Tests will NOT be b4b because we average the patch vs. site variables differently in the history output, but only the effective wind speed output is (very slightly) different. No other history variables are affected.

Checklist

Contributor

  • The in-code documentation has been updated with descriptive comments
  • The documentation has been assessed to determine if updates are necessary

Integrator

  • FATES PASS/FAIL regression tests were run
  • Evaluation of test results for answer changes was performed and results provided

Test Results:

Have run a small test case in the Amazon to prove only wind speed was affected. Will run full test suite as well.

CTSM (or) E3SM (specify which) test hash-tag: ctsm5.2.007

CTSM (or) E3SM (specify which) baseline hash-tag: ctsm5.2.007

FATES baseline hash-tag: sci.1.76.4_api.35.1.0

Test Output:

DIFFS for only FATES_EFFECT_WSPEED, and were minimal

 FATES_EFFECT_WSPEED   (lon,lat,time)  t_index =      4     4
       4148    13824  (    82,    78,     1) (   125,    46,     1) (     3,    81,     1) (     3,    81,     1)
                4148   6.762390095557969E+00   1.844060332053566E-01 5.4E-03  5.188808499425933E+00 1.7E-04  5.188808499425933E+00
                4148   6.760903248381456E+00   1.844019126634444E-01          5.183368180908529E+00          5.183368180908529E+00
               13824  (    82,    78,     1) (   125,    46,     1)
          avg abs field values:    1.574091338575881E+00    rms diff: 4.3E-04   avg rel diff(npos):  1.7E-04
                                   1.573816055109091E+00                        avg decimal digits(ndif):  4.0 worst:  3.0
 RMS FATES_EFFECT_WSPEED              4.2606E-04            NORMALIZED  2.7069E-04

@adrifoster adrifoster requested a review from glemieux June 19, 2024 14:41
@rgknox rgknox requested a review from mpaiao July 1, 2024 19:21
Copy link
Contributor

@mpaiao mpaiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrifoster Many thanks for refactoring this! I went through the changes and they look good, and I liked how you turned many parts into separate subroutines. I just made some minor suggestions on a couple of parameters and subroutines for clarity.

biogeochem/FatesPatchMod.F90 Show resolved Hide resolved
fire/SFMainMod.F90 Outdated Show resolved Hide resolved
fire/SFMainMod.F90 Show resolved Hide resolved
main/EDTypesMod.F90 Outdated Show resolved Hide resolved
@adrifoster
Copy link
Contributor Author

Thanks for the review @mpaiao. I made the requested changes and am running regression testing now.

@adrifoster
Copy link
Contributor Author

Testing seems to be the same as before - non-b4b but only for FATES_EFFECT_WSPEED, e.g.:

grep "RMS" /glade/derecho/scratch/afoster/tests_0823-151723de/ERS_D_Ld3.f19_g17.I2000Clm50FatesCruRsGs.derecho_intel.clm-FatesCold.GC.0823-151723de_int/run/ERS_D_Ld3.f19_g17.I2000Clm50FatesCruRsGs.derecho_intel.clm-FatesCold.GC.0823-151723de_int.clm2.h0.2000-01-01-00000.nc.cprnc.out
 RMS FATES_EFFECT_WSPEED              3.9756E-04            NORMALIZED  2.5913E-04
 RMS FATES_EFFECT_WSPEED              4.2606E-04            NORMALIZED  2.7069E-04

@glemieux glemieux merged commit e06e0df into NGEET:main Aug 29, 2024
1 check passed
@adrifoster adrifoster deleted the fire_weather_wind branch September 24, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants