Skip to content

FLBC overwrite of CO2 field #1645

Description

@gold2718

What happened?

The CO2 from the FLBC file overwrites the prognostic CO2 when GHG chemistry is combined with emissions-driven CO2.

When running the default CAM7 chemistry mechanism (pp_ghg_mam4) with emissions-driven CO2 (co2_cycle, co2_flag=.true.), the fixed lower boundary condition silently overwrites prognostic CO2 in the lowest model layer.

In this configuration CO2 is both a chemistry solution species (map2chm("CO2 index") > 0) and an advected co2_cycle tracer receiving coupler surface fluxes via cam_in%cflx, applied in the bottom layer by clubb_emissions_cam (in CAM7, older versions used vertical_diffusion). Every timestep, chem_timestep_tend calls gas_phase_chemdr which calls flbc_set(vmr, ncol, lchnk, map2chm), which resets vmr(:,pver,"CO2 index") to the interpolated flbc_file value whenever CO2 is in flbc_list.

I believe this overwritten value is also passed back to the surface via cam_out%co2prog.

I believe this bug was first noticed / reported by @klindsay28.

I tried to verify that this bug is still in ESCOMP/CAM via code inspection.

What are the steps to reproduce the bug?

Run ghg_mam4 chemistry with -co2_cycle in CAM_CONFIG_OPTS.

What CAM tag were you using?

cam6_4_189

What machine were you running CAM on?

Other (please explain below)

What compiler were you using?

Other (please specify below)

Path to a case directory, if applicable

No response

Will you be addressing this bug yourself?

No

Extra info

I have a fix for NorESM (which is in different files). I can propose this fix as a draft PR if you are interested. The main idea is to use a new array that is identical to map2chm except for CO2 when co2_transport is on.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions