Skip to content
ufs-communityPublic

Repository files navigation

CECE: Community Emissions Computing Engine

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.

Quick Start

1. Development Environment

The recommended way to develop CECE is using the provided Docker container:

./setup.sh

2. Build

Inside the container:

mkdir build && cd build
cmake .. -DCECE_MPIEXEC_CONTAINER_FLAGS=ON
make -j4

CECE_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 4

Without --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.

3. Run Examples

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 processing
  • cece_config_ex3.yaml - Minimal configuration for quick testing
  • cece_config_ex5.yaml - Multi-species production example (CO + NO)

4. Configuration

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 configuration

Documentation

Comprehensive documentation is available in the docs/ directory:

Architecture

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

Requirements

  • C++20 compiler
  • MPI implementation
  • ESMF/NUOPC framework
  • Kokkos (included)
  • HELM CONF (included)

Development

See AGENTS.md for detailed developer guidelines and coding standards.

Super Intelligence (SI) Disclosure

Portions of this code were generated/augmented using agentic SI models and has been reviewed and validated consistent with NOAA's SI Statement.

Releases

Packages

Contributors

Languages