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

Run-time check failure in ww3_prnc.F90 #1183

Closed
MatthewMasarik-NOAA opened this issue Jan 31, 2024 · 0 comments · Fixed by #1185
Closed

Run-time check failure in ww3_prnc.F90 #1183

MatthewMasarik-NOAA opened this issue Jan 31, 2024 · 0 comments · Fixed by #1185
Assignees
Labels
bug Something isn't working

Comments

@MatthewMasarik-NOAA
Copy link
Collaborator

MatthewMasarik-NOAA commented Jan 31, 2024

Describe the bug
Running a Debug build with additional flags captures a "forrtl: severe (194): Run-Time Check Failure" during execution of ww3_prnc.

To Reproduce

  • Ensure that WW3 builds in Debug cmake type, and additionally, appends these compile flags:
-fno-omit-frame-pointer -fsanitize=address

Expected behavior

   Processing /scratch1/NCEPDEV/climate/Matthew.Masarik/projs/reproduce_mpi/regtest_ww3_ufs1.1-unstr/mem_runs/ww3-mpi-flags-2/regtests/ww3_repro/input/ww3_prnc_wind.inp
   Screen output routed to /scratch1/NCEPDEV/climate/Matthew.Masarik/projs/reproduce_mpi/regtest_ww3_ufs1.1-unstr/mem_runs/ww3-mpi-flags-2/regtests/ww3_repro/work_pdlib_40/ww3_prnc_wind.out
forrtl: severe (194): Run-Time Check Failure. The variable 'w3prnc_$IY' is being used in '/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/reproduce_mpi/regtest_ww3_ufs1.1-unstr/mem_runs/ww3-mpi-flags-2/model/src/ww3_prnc.F90(1070,55)' without being defined
Image              PC                Routine            Line        Source             
ww3_prnc           0000000000449FBF  MAIN__                   1070  ww3_prnc.F90
ww3_prnc           000000000040DAD2  Unknown               Unknown  Unknown
libc-2.17.so       00002B187EAEA555  __libc_start_main     Unknown  Unknown
ww3_prnc           000000000040D9E9  Unknown               Unknown  Unknown

ERROR: Error occured during /scratch1/NCEPDEV/climate/Matthew.Masarik/projs/reproduce_mpi/regtest_ww3_ufs1.1-unstr/mem_runs/ww3-mpi-flags-2/regtests/ww3_repro/work_pdlib_40/exe/ww3_prnc execution

This occurs in a diagnostic WRITE statement involving grid index (IY), which is not in scope at the time. See screenshot.

Screenshots

      ELSE ! GTYPE .NE. UNGTYPE                                                        
        DO IX=1, NX                                                                    
          X = XGRD(1,IX)                                                               
          Y = YGRD(1,IX)                                                               
          IX21(IX,1) =   1 + INT(MOD(360.+(X-X0I),360.)/SXI)                           
          !                                                                            
          ! Manages the simple closure of the grid                                     
          !                                                                            
          IF (ICLO.EQ.ICLOSE_NONE) THEN                                                
            IF (IX21(IX,1).LT.1.OR.IX21(IX,1).GT.NXI-1) WRITE(NDSO,1042) IX, IY, X, Y

Additional context
NA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant