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

HEMCO standalone crashing for 0.25x0.3125 global grid #206

Closed
4 tasks done
msulprizio opened this issue Apr 14, 2023 · 1 comment · Fixed by #207
Closed
4 tasks done

HEMCO standalone crashing for 0.25x0.3125 global grid #206

msulprizio opened this issue Apr 14, 2023 · 1 comment · Fixed by #207
Assignees
Labels
category: Bug Something isn't working topic: HEMCO Standalone Model Pertaining to the HEMCO standalone
Milestone

Comments

@msulprizio
Copy link
Contributor

Name and Institution (Required)

Name: Melissa Sulprizio
Institution: Harvard/GCST

Confirm you have reviewed the following documentation

Description of your issue or question

When running the HEMCO standalone with the 3.7.0 development branch and the 0.25x0.3125 global grid defined in HEMCO_sa_Grid.025x03125.rc, the simulation crashes with the error:

At line 1360 of file /n/home05/msulprizio/S/CH4/hemco_025x03125_geosfp/CodeDir/src/Interfaces/Standalone/hcoi_standalone_mod.F90
Fortran runtime error: End of record

Error termination. Backtrace:
#0  0x2afb80ff7b47 in write_character
        at ../.././libgfortran/io/write.c:1408
#1  0x2afb80ffcb86 in list_formatted_write_scalar
        at ../.././libgfortran/io/write.c:1892
#2  0x407657 in set_grid
        at /n/home05/msulprizio/S/CH4/hemco_025x03125_geosfp/CodeDir/src/Interfaces/Standalone/hcoi_standalone_mod.F90:1341
#3  0x415851 in __hcoi_standalone_mod_MOD_hcoi_sa_init
        at /n/home05/msulprizio/S/CH4/hemco_025x03125_geosfp/CodeDir/src/Interfaces/Standalone/hcoi_standalone_mod.F90:325
#4  0x41662c in __hcoi_standalone_mod_MOD_hcoi_standalone_run
        at /n/home05/msulprizio/S/CH4/hemco_025x03125_geosfp/CodeDir/src/Interfaces/Standalone/hcoi_standalone_mod.F90:194
#5  0x4034dc in hemco_standalone
        at /n/home05/msulprizio/S/CH4/hemco_025x03125_geosfp/CodeDir/src/Interfaces/Standalone/hemco_standalone.F90:136
#6  0x403136 in main
        at /n/home05/msulprizio/S/CH4/hemco_025x03125_geosfp/CodeDir/src/Interfaces/Standalone/hemco_standalone.F90:21

After some debugging, I was able to determine that the YEDGE line is being cut off when read because the string length for variable DUM in subroutine Set_Grid is not long enough.

@msulprizio msulprizio added the category: Bug Something isn't working label Apr 14, 2023
@msulprizio msulprizio self-assigned this Apr 14, 2023
msulprizio added a commit that referenced this issue Apr 14, 2023
…id file

In order to run the HEMCO standalone with the 0.25x0.3125 global grid
(defined in run/HEMCO_sa_Grid.025x03125.rc), the line length for reading
YEDGE and YMID must be increased. Previously, it was LEN=4095 when the
length of YEDGE is 5341 and YMID is 4616. To prevent errors when reading
the HEMCO standalone grid file and defining the grid in routine Set_Grid,
the length of DUM has been increased to 5500.

This addresses #206.

Signed-off-by: Melissa Sulprizio <[email protected]>
@msulprizio
Copy link
Contributor Author

The fix for this (PR #207) has now been merged into the 3.7.0 development branch.

@msulprizio msulprizio added this to the 3.7.0 milestone Apr 14, 2023
@yantosca yantosca added the topic: HEMCO Standalone Model Pertaining to the HEMCO standalone label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Something isn't working topic: HEMCO Standalone Model Pertaining to the HEMCO standalone
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants