Skip to content

Conversation

@odiazib
Copy link
Contributor

@odiazib odiazib commented Nov 4, 2025

We are using ne30pg2 files for linoz and oxid instead of ne4pg2, which produces an error in the DataInterpolation class because we also provide a remap file.

Another piece of code is added to fix the following error:

Error! Layout mismatch for input file variable.
26:  - filename: /compyfs/inputdata//atm/scream/mam4xx/emissions/ne4pg2/elevated/cmip6_mam4_bc_a4_elev_1x1_2010_clim_ne4pg2_c20250701.nc
26:  - varname : BB
26:  - expected dims : ncol,lev
26:  - dims from file: ncol,altitude

It should fix these tests:

REP_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.pm-gpu_gnugpu.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72

SMS_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.frontier_craygnu-mphipcc.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72

[BFB]

@rljacob rljacob added the EAMxx C++ based E3SM atmosphere model (aka SCREAM) label Nov 6, 2025
Copy link
Contributor

@singhbalwinder singhbalwinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Oscar for fixing this!

@odiazib odiazib force-pushed the oscar/eamxx/fix_remap_test_mam4xx branch from 2097cb4 to c97d0db Compare November 11, 2025 00:22
@odiazib odiazib requested a review from bartgol November 11, 2025 00:25
// NOTE: Sometimes the original data does not use the same field tags as eamxx.
// For these cases, we need to perform a shallow clone of
// io_grid because the tags are constant in this object.
using namespace ShortFieldTagsNames;
Copy link
Contributor Author

@odiazib odiazib Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartgol I ended up only modifying the grid for the AtmosphereInput here because the other place we talked about did not have any effect. My guess is that when the remapper is created, the grid from the input target grid is not used to set or check the field tags.

@singhbalwinder singhbalwinder added BFB PR leaves answers BFB MAM4xx MAM4xx related changes Testing Anything related to unit/system tests labels Nov 12, 2025
singhbalwinder added a commit that referenced this pull request Nov 12, 2025
…xx' into next (PR #7863)

EAMxx: Fixing the grid for LINOZ and OXID files.

We are using ne30pg2 files for linoz and oxid instead of ne4pg2, which produces an error in the DataInterpolation class because we also provide a remap file.

Another piece of code is added to fix the following error:

Error! Layout mismatch for input file variable.
26:  - filename: /compyfs/inputdata//atm/scream/mam4xx/emissions/ne4pg2/elevated/cmip6_mam4_bc_a4_elev_1x1_2010_clim_ne4pg2_c20250701.nc
26:  - varname : BB
26:  - expected dims : ncol,lev
26:  - dims from file: ncol,altitude
It should fix these tests:

REP_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.pm-gpu_gnugpu.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72

SMS_Ln5.ne30pg2_oECv3.F2010-EAMxx-MAM4xx.frontier_craygnu-mphipcc.eamxx-mam4xx-remap_emiss_ne4_ne30--eamxx-L72

[BFB]

* odiazib/oscar/eamxx/fix_remap_test_mam4xx:
  EAMxx: Updating files for remap unit test.
  EAMxx: Using a clone grid to allow reading data from an NC file that does not use the same field tags as eamxx.
  EAMxx: We must use ne4pg2 files for oxid and LINOZ.
@singhbalwinder singhbalwinder merged commit 865f0bc into E3SM-Project:master Nov 12, 2025
21 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BFB PR leaves answers BFB EAMxx C++ based E3SM atmosphere model (aka SCREAM) MAM4xx MAM4xx related changes Testing Anything related to unit/system tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants