Closed sdeastham closed 4 months ago
RESOLVED: My apologies! I had missed this line in the preamble (https://github.com/geoschem/geos-chem/blame/dd859ee45494af71d29f0877f359ff571f697b67/GeosCore/convection_mod.F90#L557) which means that the indexing for CMFMC
is not quite what it looks like. Leaving this here in case others come across this in the future.
Your name
Sebastian Eastham
Your affiliation
Imperial College London
Please provide a clear and concise description of your question or discussion topic.
In
convection_mod.F90
, we say that the incoming mass flux to layerK
isCMFMC(K-1)
unless at the surface, in which case it is zero (https://github.com/geoschem/geos-chem/blame/dd859ee45494af71d29f0877f359ff571f697b67/GeosCore/convection_mod.F90#L776-L782). However,CMFMC
is a level-edged variable; shouldn't it therefore be thatCMFMC(K)
is the incoming mass flux, sinceCMFMC(1)
will correspond to the (zero) mass flux across the Earth's surface whileDTRAIN(K)
will correspond to the detrainment in the first layer? This would propagate to the line whereCMFMC(K)
andDTRAIN(K)
are summed together to yield total outgoing mass flux (https://github.com/geoschem/geos-chem/blame/dd859ee45494af71d29f0877f359ff571f697b67/GeosCore/convection_mod.F90#L812) - it seems like this should instead beCMFMC(K+1) + DTRAIN(K)
. However, it would be best to get an expert in convection and/or the GEOS implementation to confirm.