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

Segmentation fault in wrfgc_convert_state_mod.F90 - wetlscnvfrc_n0 #7

Open
qiujx20 opened this issue Aug 1, 2024 · 6 comments
Open
Assignees
Labels
diagnostics Component: Related to model diagnostics question Further information is requested
Milestone

Comments

@qiujx20
Copy link

qiujx20 commented Aug 1, 2024

Hello,

I am encountering a segmentation fault when running WRF-GC3.0, which appears to indicate an error in line 2468 of the wrfgc_vert_state_mod.f90 program. Could you please provide a solution to this issue?

Thank you very much for your assistance.

a4b3c693113a4c6424d6ce78343509a
2489line

@jimmielin jimmielin added question Further information is requested diagnostics Component: Related to model diagnostics labels Aug 1, 2024
@jimmielin
Copy link
Member

Hello @qiujx20, could you provide the &chem section of your namelist.input file?

@jimmielin jimmielin added this to the 3.0.0 milestone Aug 1, 2024
@jimmielin jimmielin self-assigned this Aug 1, 2024
@jimmielin jimmielin changed the title WRF-GC3.0-segmentation fault Segmentation fault in wrfgc_convert_state_mod.F90 - wetlscnvfrc_n0 Aug 1, 2024
@qiujx20
Copy link
Author

qiujx20 commented Aug 1, 2024

Okay, this is &chem , followed by the namelist. input
image
namelist.input.txt

@jimmielin
Copy link
Member

Could you try uncommenting these lines in HISTORY.rc in the run directory?

             #'WetLossConv',
             #'WetLossLS',

@qiujx20
Copy link
Author

qiujx20 commented Aug 1, 2024

Thank you very much for your assistance. After modifying History.rc, the previous error has been resolved.

However, a new error has arisen, and I would appreciate your help in resolving it.

07e30dff8f272d7788fa2a5085a3ebb

@qiujx20
Copy link
Author

qiujx20 commented Aug 1, 2024

I tried changing the e_vert value in the namelist.input file from 46 to 40, but I still encountered the same error related to ucx_mod.F90
B`K$VWQQ}L0N{Z5F$MF4USL

This issue seems to be related to ucx_mod. Could it be possible that the setting on line 1236 in the F90 program is causing this problem?
image

@CADiMaria
Copy link

CADiMaria commented Nov 28, 2024

Were you able to figure out what was causing this error? I am consistently encountering the exact same error in the full-chemistry simulations:

forrtl: severe (408): fort: (2): Subscript #3 of the array PEDGE has value 43 which is greater than the upper bound of 42

Image              PC                Routine            Line        Source
wrf.exe            000000000557F316  Unknown               Unknown  Unknown
wrf.exe            0000000004C5B3B5  ucx_mod_mp_settle        1236  ucx_mod.F90
wrf.exe            0000000004A28429  sulfate_mod_mp_ch         543  sulfate_mod.F90
wrf.exe            0000000004AC4FCC  chemistry_mod_mp_         538  chemistry_mod.F90
wrf.exe            00000000049720C7  gigc_chunk_mod_mp        1279  gigc_chunk_mod.F90
wrf.exe            0000000001B63684  chem_driver_              824  chem_driver.f90
wrf.exe            000000000198D6EF  Unknown               Unknown  Unknown
wrf.exe            000000000060B05B  Unknown               Unknown  Unknown
wrf.exe            00000000004198D1  Unknown               Unknown  Unknown
wrf.exe            0000000000419884  Unknown               Unknown  Unknown
wrf.exe            0000000000419812  Unknown               Unknown  Unknown
libc-2.17.so	   00002B43C857A555  __libc_start_main     Unknown  Unknown
wrf.exe            0000000000419729  Unknown               Unknown  Unknown

I originally suspected this might be due to a problem in the wet deposition routines because I was finding small negative trace gas concentrations, but even after I fixed that issue this error keeps happening. I also thought it might be due to my nested domain setup, but the error also occurs on single-domain runs. The CO2 and CH4 simulations are working well, but I keep running into this problem in the full-chemistry model.

It seems like in all of my runs where this error occurs, I also get this error in the rsl.out.**** files:

 MET_CLDTOPS                    | Maximum cloud top he | xy    | level
 MET_CLDFRC                     | Column cloud fractio | xy    | 1
 MET_CHEMGRIDLEV                | Highest level of the | xy    | 1
 MET_AREAM2                     | Surface area of grid | xy    | m2
 MET_ALBD                       | Visible surface albe | xy    | 1
===============================================================================
GEOS-Chem ERROR: Could not allocate fullchem_mod.F90:PL_Kpp_Id!
 -> at GC_CheckVar (in Headers/errcode_mod.F90)
===============================================================================

===============================================================================
GEOS-Chem ERROR: Error encountered in "Init_FullChem"!
 -> at GC_Init_Extra (in module GeosCore/gc_environment_mod.F90)
===============================================================================

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%               HEMCO: Harmonized Emissions Component                 %%%%%
%%%%%               You are using HEMCO version 3.6.2                     %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Reading settings & switches of HEMCO configuration file: HEMCO_Config.rc

Did you also see a similar error? The model usually keeps running for a long time after this before crashing with the PEDGE error, but I wonder if this is the root cause and if so how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostics Component: Related to model diagnostics question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants