Skip to content

Commit

Permalink
Add Cloud-J external and configure build
Browse files Browse the repository at this point in the history
Signed-off-by: Lizzie Lundgren <[email protected]>
  • Loading branch information
lizziel committed Dec 21, 2023
1 parent dcc7e20 commit bb6e865
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Externals_CAM.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,12 @@ repo_url = https://github.com/ESCOMP/HEMCO_CESM.git
required = True
externals = Externals_HCO.cfg

[cloud_j]
local_path = src/chemistry/cloud_j
branch = cesm
protocol = git
repo_url = https://github.com/geoschem/CLOUD-J.git
required = True

[externals_description]
schema_version = 1.0.0
7 changes: 6 additions & 1 deletion bld/configure
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ if ($chem_pkg =~ '_mam3') {

# Set GEOS-Chem CPP definitions here
if ($chem_pkg =~ 'geoschem') {
$chem_cppdefs .= ' -DEXTERNAL_GRID -DEXTERNAL_FORCING -DLINUX_IFORT -DUSE_REAL8 -DMODEL_ -DMODEL_CESM';
$chem_cppdefs .= ' -DEXTERNAL_GRID -DEXTERNAL_FORCING -DLINUX_IFORT -DUSE_REAL8 -DMODEL_ -DMODEL_CESM -DMODEL_GEOSCHEM';
$chem_nadv = 267; # includes GC advected species (233), CO2 (1), and MAM aerosols (33)
}

Expand Down Expand Up @@ -2167,6 +2167,11 @@ sub write_filepath
print $fh "$chem_src_dir\n";
}

# Cloud-J for computing J-values in chemistry; currently only built for GEOS-Chem
if ($chem_pkg =~ 'geoschem') {
print $fh "$camsrcdir/src/chemistry/cloud_j/src/Core\n";
}

# GEOS-Chem must be prior to Mozart
if ($chem_pkg =~ 'geoschem') {
print $fh "$chem_src_dir/geoschem_src/GeosCore\n";
Expand Down

0 comments on commit bb6e865

Please sign in to comment.