-
Notifications
You must be signed in to change notification settings - Fork 542
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
Feature/ascii #1089
Feature/ascii #1089
Conversation
out_grd.ww3, out_pnt.ww3, mod_def.ww3 using CPP key ASCII
update matrix.base
Nice @mickaelaccensi - this looks very useful for locating bit-4-bit reproducibility issues in output files. |
Hi @mickaelaccensi, thanks, I look forward to reviewing this. I'm at the Wave workshop right now, so I can start the regtests though the review time frame is the beginning next week. |
I'm running the regtests on our HPC. I will try the new ASCII regtest on a variety of compilers once the main regtests suite has run. |
@mickaelaccensi this is awesome and I think will be a great tool in helping us debug b4b issues! Thank you. One comment: The ascii output is a debugging tool. I'm wondering if it'd be better to just simply locally define the file number for the output instead of adding the optional input arguments into so many routines? I don't know what others thoughts are on this, because the way you implmented it is the more "correct" way it just makes things a bit messier in terms of the optional cpp defined input to routines? Again - this is really exciting. |
@mickaelaccensi I just kicked off regtests for the NOAA side of things. I'll let you know how it goes. |
I am seeing some failures in ww3_trnc (can't find mod_def.ww3 file). |
Actually, I think this might be an existing bug in |
@mickaelaccensi I also got an error for the test: run_test -b slurm -o all -S -T -s MPI_ASCII -w work_MPI_ASCII -m grdset_a -f -p srun -n 24 ../model mww3_test_09 Processing /scratch1/NCEPDEV/climate/Jessica.Meixner/PR_WW3/pr1089/regtests/mww3_test_09/input/ww3_strt.inp
The error was:
I see that you haven't posted the matrix output from your tests, were yours successful? Can you post the matrix output. |
@JessicaMeixner-NOAA and @mickaelaccensi - do you have any errors regarding ww3_trnc execution in the multigrid tests? It seems that this is not working correctly in
...and lots more... |
I do not @ukmo-ccbunney do you get these in the develop branch as well? (I now re-read, you did see these in develop.) |
Yes I do. I think I can see what the problem is and I will raise a PR for it. Do you have |
@JessicaMeixner-NOAA , I also had the issue on mww3_test_09, it is not corrected. |
Thanks @mickaelaccensi ! |
Hi @mickaelaccensi, were working on this now. Could you sync this branch since Chris's fix just merged? |
done. also merged for feature/GQM, if you can merge it also. Then I have the branch feature/ST4 which is waiting for those PR to be accepted. cheers |
Awesome, thanks Mickael. I'll run the tests for feature/GQM now as well so it will be ready right behind this one. I accidentally ran the regtests for this branch without the updates from #1091, so they are re-running right now. If there's no unexpected diffs, it should get through shortly today. |
Hi @mickaelaccensi, I got the matrix results back, and I'm seeing a couple tests with differences (
|
good catch. I've removed it and created an issue to check it later because I'm convinced the test on UST in w3iogomd.F90 is not correct. But it is not the goal of this branch |
@mickaelaccensi thanks for this update. Last night I ran some regression tests that confirmed that part of the code is the cause of the issues we're seeing. I put your updates here: https://github.com/jessicameixner-noaa/ww3/tree/bug/initvalueust for that thest. Based on the diffs we were seeing before, I think you have found something that needs to be updated, but agree that it should be in a separate PR. In the meantime - I think this should resolve the outstanding issues with this branch and after some regtests today we should be able to merge this, which will hopefully help us figure out what's going on with the gqm branch and allow us to merge that soon too. |
Thanks @mickaelaccensi for the updates, and @JessicaMeixner-NOAA for diagnosing the issue. I'll start the new regtests. |
@mickaelaccensi there was a small fix that went in yesterday afternoon, could you sync this branch when you have chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review
Pass
Feature check
Pass
Setting the ASCII
switch will additionally create mod_def.*.txt
, out_grd.*.txt
, and out_pnt.*.txt
alongside the standard binary versions. Two tests have been added to verify this. Sample directory listing from one of these (mww3_test_09/work_MPI_ASCII) demonstrates the functionality is working:
[WW3/regtests]$ file mww3_test_09/work_MPI_ASCII/out_* mww3_test_09/work_MPI_ASCII/mod_def*
mww3_test_09/work_MPI_ASCII/out_grd.Huron: data
mww3_test_09/work_MPI_ASCII/out_grd.Huron.txt: ASCII text
mww3_test_09/work_MPI_ASCII/out_grd.Michi: data
mww3_test_09/work_MPI_ASCII/out_grd.Michi.txt: ASCII text
mww3_test_09/work_MPI_ASCII/out_grd.Super: data
mww3_test_09/work_MPI_ASCII/out_grd.Super.txt: ASCII text
mww3_test_09/work_MPI_ASCII/out_pnt.Huron: data
mww3_test_09/work_MPI_ASCII/out_pnt.Huron.txt: ASCII text
mww3_test_09/work_MPI_ASCII/out_pnt.Michi: data
mww3_test_09/work_MPI_ASCII/out_pnt.Michi.txt: ASCII text
mww3_test_09/work_MPI_ASCII/out_pnt.Super: data
mww3_test_09/work_MPI_ASCII/out_pnt.Super.txt: ASCII text
mww3_test_09/work_MPI_ASCII/mod_def.Huron: data
mww3_test_09/work_MPI_ASCII/mod_def.Huron.txt: ASCII text
mww3_test_09/work_MPI_ASCII/mod_def.Michi: data
mww3_test_09/work_MPI_ASCII/mod_def.Michi.txt: ASCII text
mww3_test_09/work_MPI_ASCII/mod_def.Super: data
mww3_test_09/work_MPI_ASCII/mod_def.Super.txt: ASCII text
Testing
Pass
Matrix results: No changes outside of the known non-b4b cases.
**********************************************************************
********************* non-identical cases ****************************
**********************************************************************
mww3_test_03/./work_PR3_UNO_MPI_e (1 files differ)
mww3_test_03/./work_PR2_UNO_MPI_d2 (16 files differ)
mww3_test_03/./work_PR1_MPI_d2 (14 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2_c (8 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2_c (15 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2 (18 files differ)
mww3_test_03/./work_PR2_UQ_MPI_d2 (13 files differ)
mww3_test_03/./work_PR3_UQ_MPI_e (1 files differ)
mww3_test_03/./work_PR3_UNO_MPI_e_c (1 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2 (15 files differ)
ww3_tp2.10/./work_MPI_OMPH (7 files differ)
ww3_tp2.16/./work_MPI_OMPH (4 files differ)
ww3_ufs1.3/./work_a (3 files differ)
**********************************************************************
************************ identical cases *****************************
**********************************************************************
@mickaelaccensi thank you for this very useful feature!! I think it will make a big impact on debugging going forward. |
* Bugfix - initialised VD and VS to zero in w3srcemd. (NOAA-EMC#1037) * More efficient test for binary files in matrix.comp (NOAA-EMC#1035) * Tidy up of pre-processor directives and unused variables in w3srcemd.F90 (NOAA-EMC#1010) * Correct typo in w3srcemd.F90 pre-processor directive. (NOAA-EMC#1039) * minor bugfix for matrix grepping on keywords (NOAA-EMC#1049) * Stop masking group 1 output where icec > icen (NOAA-EMC#1019) * Doxygen documentation added, 8th subset.(NOAA-EMC#1046) * NC4 ,F90 ,XX0 switches removed from ww3_tp2.19 regtest (NOAA-EMC#1054) * CI: Fix for Intel scripts. GNU scripts updated. (NOAA-EMC#1064) * correct the computation of QP parameter, add QKK output parameter, change UST scale factor (NOAA-EMC#1050) * correct issue with ww3_multi when requesting restart2 and using nml file instead of inp file (NOAA-EMC#1070) * correct calendar for track netcdf output (NOAA-EMC#1079) * Fix missing mod_def.ww3 file in multigrid regression tests for track output (NOAA-EMC#1091) * STAB3: fix cmake build for ST4 or ST3 (NOAA-EMC#1086) * new feature to output out_grd.ww3, out_pnt.ww3 and mod_def.ww3 both in binary and ascii format using switch ASCII. (NOAA-EMC#1089) * Update local unit number arrays (NDS, MDS) to be same size of array defined in w3odatmd (size=15). Also, defined unit numbers for NDS(14) and NDS(15). (NOAA-EMC#1098) * Removed code referencing PHIOC in output section for PHICE in ww3_ounf (NOAA-EMC#1093) * implementation of the GQM (Gaussian Quadrature Method) to replace the DIA in NL1 or NL2. (NOAA-EMC#1083) * update logic to ensure you are not accessing uninitialized dates (NOAA-EMC#1114) * Initialised S and D arrays in W3SDB1 before potential early return if zero energy. (NOAA-EMC#1115) * ww3_ounp.F90: x/y units attribute corrected from 'm' to 'km' (NOAA-EMC#1088) * Bugfix: Assign unit numbers to ASCII gridded/point output in multi-grid mode. (NOAA-EMC#1118) * correct bugs to run correctly GQM implementation (NOAA-EMC#1127) * Adding documentation to w3iopo() in preparation for code for NOAA-EMC#682. (NOAA-EMC#1131) * NCEP regtest module updates: uses spack-stack/1.5.0, includes scotch/7.0.4 (NOAA-EMC#1137) * Minor update to ncep regtests (NOAA-EMC#1138) * Updated intel workflow to install oneapi compilers from new location. (NOAA-EMC#1157) * Add unit test for points I/O code. (NOAA-EMC#1158) * Update Intel CI (relocate /usr/local; ensure intel-oneapi-mpi; use ubuntu-latest) (NOAA-EMC#1161) * remove lookup table for ST4 to speed up computation and clean up the ST4 code (NOAA-EMC#1124) Co-authored-by: Fabrice Ardhuin <[email protected]> * initialize USSP_WN for mod_def (NOAA-EMC#1165) * Introduce IC4M8 and IC4M9 to WW3 (NOAA-EMC#1176) * clean up and add ST4 variables (NOAA-EMC#1181) * w3fld1md.F90: fix divide by zero in CRIT2 parameter (NOAA-EMC#1184) * ww3_prnc.F90: fix out-of-scope grid index write statement (NOAA-EMC#1185) * Bugfix: address potential divide-by-zero in APPENDTAIL (NOAA-EMC#1188) Co-authored-by: Denise Worthen <[email protected]> * Provide initial drying of cells with depth < ZLIM for SMC grid. (NOAA-EMC#1192) * Output OMP threading info to screen when running ww3_shel/ww3_multi compiled with the OMPG switch. Also fixes truncation of build.log when running run_cmake_build. (NOAA-EMC#1191) * Added screen output showing number of threads when OMP enabled. * update build to get more info in logs (NOAA-EMC#46) --------- Co-authored-by: Jessica Meixner <[email protected]> * update run_cmake_test to catch build errors and exit (NOAA-EMC#1194) * fix merge conflicts * Fix gustiness bug, as suggst by Pieter * Change USTARsigma to WAM implementation --------- Co-authored-by: Chris Bunney <[email protected]> Co-authored-by: Mickael Accensi <[email protected]> Co-authored-by: Benoit Pouliot <[email protected]> Co-authored-by: Matthew Masarik <[email protected]> Co-authored-by: Ghazal-Mohammadpour <[email protected]> Co-authored-by: Jessica Meixner <[email protected]> Co-authored-by: Biao Zhao <[email protected]> Co-authored-by: Edward Hartnett <[email protected]> Co-authored-by: Alex Richert <[email protected]> Co-authored-by: Fabrice Ardhuin <[email protected]> Co-authored-by: W. Erick Rogers <[email protected]> Co-authored-by: Denise Worthen <[email protected]> Co-authored-by: Camille Teicheira <[email protected]>
Pull Request Summary
new feature to output out_grd.ww3, out_pnt.ww3 and mod_def.ww3 both in binary and ascii format using switch ASCII.
Description
new output is created in ascii files out_grd.ww3.txt, out_pnt.ww3.txt and mod_def.ww3.txt when activating cpp key W3_ASCII.
Please also include the following information:
-->
Issue(s) addressed
no issue since it is a new feature
Commit Message
new feature to output out_grd.ww3, out_pnt.ww3 and mod_def.ww3 both in binary and ascii format using switch ASCII.
Check list
@JessicaMeixner-NOAA and @MatthewMasarik-NOAA , the version should be updated with this feature, isn't ?
Testing
asap