-
Notifications
You must be signed in to change notification settings - Fork 163
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
[BUG/ISSUE] Issue with nested CO2 simulation (custom grid) boundary conditions #962
Comments
Just to add in case it's relevant: I've also noticed that for the set-up I describe above if I add my own emissions files in HEMCO_Config.rc the added emissions are not read in during the simulation. |
Hi @tscarpelli. Thanks for writing. Try changing you BC_ entry in HEMCO_Config.rc from hour=0-23 to *:
The asterisk/wildcard character tells HEMCO to read all hours for that day at the start of the day. For BCs, HEMCO expects daily files with 3-hourly data (i.e. 8 time stamps). The appropriate 3-hourly timestamp is selected and applied to the species concentration array in the GEOS-Chem routine |
Thanks @msulprizio for the response. I still get the same error after making your suggested edit. |
Hi @tscarpelli, thanks for writing. A seg fault is an invalid memory reference, which can happen if you try to reference a pointer that is NULL. It can also happen if you are running out of available memory. How much memory did you allot for your simulation? You might try increasing the amount of memory in your run script (if you are using SLURM or some other scheduler) and then see if that gets past the error. Also, if you have the gdb debugger installed on your system, and if a core file was dumped, then you can do: gdb gcclassic core.XXXXX where XXXXX is the suffix of the core file. That should take you to the point of failure. If you type "where" then it should give you info about the error. If it says "no stack" then configure GEOS-Chem with -DCMAKE_BUILD_TYPE=Debug, recompile it, and then type: gdb gcclassic and then when the debugger opens, type "run". That should get you to the point of the error. |
Thanks @yantosca. I'm not using SLURM or a scheduler (and I have ulimit -s unlimited in my .bashrc as suggested in the wiki). I did compile GEOS-Chem as directed for debugging (see below, as suggested in #788) and our system does have gdb but there doesn't appear to be a core file. Given that I was also unable to make edits to the emission inventories specified in the HEMCO_Config.rc, for now I will switch to an older version of the model that other people in my group are also using and we know runs successfully with my desired edits. I will close out this issue but may try the update to v13 again later when I'm more familiar with GEOS-Chem. Thanks for the help! |
Thanks @tscarpelli. When you are ready to migrate to v13, let us know if you have any questions. We also have a couple of intro videos about v13 on our Youtube channel. |
Description of the problem
Hello support team! I am a new GEOS-Chem user and I am trying to run a 1-week nested CO2 simulation at 0.25 x 0.3125 using GEOS-Chem v13.2.1 over a custom region in Europe. The code dies soon after it starts time stepping with a Segmentation Fault error (invalid memory reference).
Description of troubleshooting performed
I believe the problem is associated with how I specify boundary conditions because when I remove my GC_BCs edits from my HEMCO_Config.rc my edited code finishes successfully. When I set up the nested simulation, the HEMCO_Config.rc file did not have the option to toggle GC_BCs true/false in the Extension Switches Section so I added it there and I also specified my boundary conditions from a global simulation (4x5 CO2 simulation) in the BASE EMISSION section. When I remove both of these edits the code runs successfully.
I followed the directions on the Wiki regarding building with Debug on and the error that resulted is below. If I don't run with Debug on it gives the same error as below but at line 2471 in hco_utilities_gc_mod.F90. When I investigated this it looks like there is an issue when it tries to manipulate Ptr3D but I'm not familiar enough with the source code to investigate more than that.
GEOS-Chem version
v13.2.1
Description of modifications
For input.geos: I adjusted the time frame and specified a custom grid. I also toggled all emissions to False except Fossil Fuel for CO2 SIM MENU.
For HEMCO_Config.rc: I specified boundary conditions, turned off all non-fossil fuel emissions. Toggled CO_COPROD to False and GFED to off. I also changed the GC_RESTART entry so that it read CYS rather than EFYO for SPC_ because it was giving me errors.
Log files
Run logs (if applicable):
HEMCO.log.txt.txt
GC.log.txt.txt
Run script (if applicable):
HEMCO_Config.rc.txt.txt
input.geos.txt.txt
The text was updated successfully, but these errors were encountered: