Skip to content

test(ci,examples): Run HEMCO examples in CI. - #160

Draft
DWesl wants to merge 32 commits into
ufs-community:developfrom
DWesl:ci-run-examples
Draft

DWesl wants to merge 32 commits into
ufs-community:developfrom
DWesl:ci-run-examples

Conversation

@DWesl

@DWesl DWesl commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Fix EDGAR and CEDS download links so that gets downloaded.

No mention is made of where to get hourly.nc.
None of the later examples have a driver section.

Addresses #147, #121, partial for #62.

Comment thread .github/workflows/ci.yml Outdated
build/bin/cece_nuopc_app

# TODO: Revert cece_config_ex1 to pre-cece_config_ex7 state
for i in $(seq 2 6);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
for i in $(seq 2 6);
for i in $(seq 1 6);

Comment thread .github/workflows/ci.yml Resolved
@DWesl

DWesl commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Example one reads files not downloaded by the corresponding script, and will continue to do so until #184 goes in. It is nearly a copy of example seven.

Example two is failing due to missing EMEP CO files as noted in #121

Example three passed once it had relative paths to work with

Example four fails with this error:

[RANK:0000] [ERROR] [FATAL ERROR] AMIO read failed for field 'HTAP_NO' in file 'data/HTAPv3_NO_0.1x0.1_2018.nc'. Reason: regrid plan construction threw an exception: [prerequisite validation] source and destination grids for method 'conservative1st': conservative mapping needs prepared cell boundaries; center-only geometry cannot be reconstructed implicitly. Supply authoritative gridspec bounds or an explicit supported geometry declaration. Idealized fallback is disabled!

which looks like an error from #124 here. I have no idea how they resolved that error.

Comment thread src/driver/cece_sim_c_abi.cpp Outdated
Comment on lines +30 to +33
extern "C" {
void cece_core_initialize_p1(void** data_ptr_ptr, int* rc);
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
extern "C" {
void cece_core_initialize_p1(void** data_ptr_ptr, int* rc);
}

Comment thread src/driver/cece_sim_c_abi.cpp Outdated
set_out(rc, -1);
return;
}
// TODO: Work out how to call GridSpecFfrom_yaml with output from this function

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
// TODO: Work out how to call GridSpecFfrom_yaml with output from this function
// TODO: Work out how to call GridSpec::from_yaml with output from this function

#include "cece/cece_config.hpp"
#include "cece/cece_fatal.hpp"
#include "cece/cece_simulation.hpp"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
#include "cece/cece_internal.hpp"

Comment thread src/driver/cece_sim_c_abi.cpp Outdated
Comment on lines +180 to +182
// TODO: Work out how to call GridSpecFfrom_yaml with output from this function
cece_core_initialize_p1(nullptr, rc);
// cece::CeceConfig config = cece::ParseConfig(config_path);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
// TODO: Work out how to call GridSpecFfrom_yaml with output from this function
cece_core_initialize_p1(nullptr, rc);
// cece::CeceConfig config = cece::ParseConfig(config_path);
// TODO: Work out how to call GridSpecFfrom_yaml with output from this function
cece::CeceInternal *cece_internal;
cece_core_initialize_p1(reinterpret_cast<void**>(&cece_internal), &rc);
// cece::CeceConfig config = cece_internal->config;

@DWesl

DWesl commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

So the fix was adding geometry_reconstruction: "rectilinear_midpoint" to the driver section of the config file. The error message could stand to be more clear about whether it's the source or destination grid that needs boundaries/geometry

@DWesl

DWesl commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

The checked-in examples are passing now: on to the generated ones

Comment thread src/driver/cece_sim_c_abi.cpp Resolved
@DWesl

DWesl commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

Five NUOPC examples run fine, then the NUOPC driver attempting generated example number three crashes with only one line of output.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant