CECE is a high-performance, performance-portable emissions compute component for Earth System Models. It is built using C++20 and the Kokkos programming model, designed to run efficiently on both multi-core CPUs and GPUs.
The recommended way to develop CECE is using the provided Docker container:
./setup.shInside the container:
mkdir build && cd build
cmake .. -DCECE_MPIEXEC_CONTAINER_FLAGS=ON
make -j4CECE_MPIEXEC_CONTAINER_FLAGS (default OFF) appends
--allow-run-as-root/--oversubscribe to the mpiexec test launches.
The container needs both (tests run as root with oversubscribed CPUs);
HPC systems need neither, and Intel MPI's mpiexec rejects
--allow-run-as-root outright — so leave it OFF outside containers.
The maintained container workflows (scripts/build-and-test-container.py,
CI) pass it automatically; only manual in-container configures like the
one above need it spelled out.
scripts/build-and-test-container.py builds and tests in the container
from the host. Build only what you need and bound the parallelism with
--target (repeatable) and --jobs:
python3 scripts/build-and-test-container.py --no-test --target cece_standalone_driver --jobs 4Without --target it builds everything (the all target); without --jobs
it uses the CPU count.
To run the test suite on an HPC Slurm system (inside an sbatch
allocation, with srun or the MPI's own mpiexec as the launcher), see
scripts/run-tests-slurm.README.md.
CECE provides several example configurations to demonstrate different capabilities:
Run a basic example:
./setup.sh -c "cd /work && ./build/bin/cece_nuopc_app examples/cece_config_ex1.yaml"Available examples:
cece_config_ex1.yaml- Basic single species (CO) emission processingcece_config_ex3.yaml- Minimal configuration for quick testingcece_config_ex5.yaml- Multi-species production example (CO + NO)
CECE uses a single YAML configuration file with fully configurable parameters:
# Timing configuration
driver:
start_time: "2020-01-01T00:00:00"
end_time: "2020-01-01T06:00:00"
timestep_seconds: 3600
grid:
nx: 4
ny: 4
lon_min: -135.0
lon_max: 135.0
lat_min: -67.5
lat_max: 67.5
# Species and emission data streams
species:
co:
- field: "MACCITY_CO"
operation: "add"
cece_data:
streams:
- name: "MACCITY_CO"
file: "/work/data/MACCity_4x5.nc"
# ... stream configurationComprehensive documentation is available in the docs/ directory:
- User's Guide - Getting started and basic usage
- Configuration Reference - Complete YAML configuration options
- Tutorial - Step-by-step examples
- Examples Guide - Detailed example descriptions
CECE is built on a modular architecture:
- NUOPC Integration: Earth System Model component interface
- TIDE Data Ingestion: High-performance emission data processing with conservative regridding
- Kokkos Compute: Performance-portable parallel execution (CPU/GPU)
- Physics Schemes: Extensible emission processing algorithms
- YAML Configuration: Runtime configuration without recompilation
- C++20 compiler
- MPI implementation
- ESMF/NUOPC framework
- Kokkos (included)
- HELM CONF (included)
See AGENTS.md for detailed developer guidelines and coding standards.
Portions of this code were generated/augmented using agentic SI models and has been reviewed and validated consistent with NOAA's SI Statement.