Skip to content

Socrates: cloud water from cloud_simple / cloud_spookie is passed as a grid-box mean but used as in-cloud - #315

Open
sit23 wants to merge 1 commit into
ExeClim:masterfrom
sit23:socrates_incloud_condensate
Open

sit23 wants to merge 1 commit into
ExeClim:masterfrom
sit23:socrates_incloud_condensate

Conversation

@sit23

@sit23 sit23 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Where: Isca's Socrates interface, src/atmos_param/socrates/interface/socrates_calc.F90 → socrates_set_cld.F90,
with either cloud scheme (cloud_simple / SimCloud, or cloud_spookie).

What happens

  • Both cloud schemes return qcl_rad = cf × in-cloud water (cloud_simple.F90, calc_qcl_rad;
    cloud_spookie.F90). This is a grid-box mean.
  • socrates_set_cld.F90 documents liq_mmr/ice_mmr as "gridbox mean mixing ratios" and copies them
    unchanged into cld%condensed_mix_ratio.
  • The Socrates radiance core treats condensed_mix_ratio as the in-cloud mixing ratio. It computes optical
    properties "within clouds" (e.g. grey_opt_prop.F90) and then weights them by the cloud fraction.
  • So every partly cloudy grid box is optically too thin by a factor of cf. Overcast boxes are unaffected.

Size of the effect. Isca T42, 47 levels, prescribed SST and sea ice, SimCloud + Socrates GA3. The numbers are
3-month (Oct–Dec) global means, fixed minus current, ± standard error from monthly pairs:

qcl_val 0.09 g/kg qcl_val 0.18 g/kg (Liu et al. 2021)
SW CRE −8.7 ± 0.4 W m⁻² −7.9 ± 0.7
LW CRE +3.2 ± 0.1 +2.3 ± 0.3
net CRE −5.5 ± 0.3 −5.6 ± 0.4
SW CRE: tropics / 40–60°S / 60–90°S −9.5 / −16.4 / −5.0 −9.6 / −14.0 / −5.1

Cloud amount changes by less than 1.5 percentage points. Only the radiation changes.

Proposed fix (in this PR): a new switch, socrates_rad_nml: do_incloud_condensate, default .false.
(answers unchanged). When set to .true., qcl_rad is divided by cf (where cf > 1e-4) before set_cld.

Consequence for tuning. SimCloud's qcl_val was tuned with this bug in place (Liu et al. 2021: 0.18 g/kg).
With the fix, about 0.09 g/kg gives the same global SW CRE compared with CERES. Suggestion: keep the default off so
existing configurations and Liu et al. (2021) are reproduced, but recommend do_incloud_condensate = .true. with a
retuned qcl_val for new SimCloud/SPOOKIE configurations, and say so in the docs.

These results, and the fix, were obtained by Claude.

… (socrates_rad_nml do_incloud_condensate, default off)

socrates_set_cld documents liq/ice_mmr as grid-box means and copies them
unchanged into cld%condensed_mix_ratio, which the Socrates radiance core
uses as the IN-CLOUD mixing ratio (optical properties within clouds,
weighted by the cloud fraction). cloud_simple and cloud_spookie supply
qcl_rad = cf x in-cloud water, so the radiation sees cf x the intended
in-cloud water. With do_incloud_condensate = .true., qcl_rad is divided
by the cloud fraction (where cf > 1e-4) before set_cld. Default off:
answers unchanged.
@sit23

sit23 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Socrates uses cld%condensed_mix_ratio as the in-cloud mixing ratio, but cloud_simple and cloud_spookie
pass a grid-box mean (qcl_rad = cf × in-cloud water). The radiation therefore sees cf × the intended in-cloud
water. This PR adds socrates_rad_nml: do_incloud_condensate:

  • .false. (default): unchanged. The grid-box mean is passed, as before.
  • .true.: qcl_rad is divided by the cloud fraction (where cf > 1e-4) before set_cld.

Changes: socrates_config_mod.f90 (new namelist variable) and socrates_calc.F90 (the division before set_cld).
No change to the cloud schemes themselves.

Testing

  • 3-day socrates_aquaplanet_cloud (SPOOKIE + Socrates), master vs this branch with the switch off:
    bit-for-bit identical. With the switch on, the SW fluxes change as expected (day 3: net TOA SW −1.5 W m⁻² in the global mean,
    from a cold start).
  • Full trip test, master d1321ac vs this branch (gfortran, ubuntu_conda, 8 cores):
    • Pass, bit-identical (15 cases): bucket_model, frierson, held_suarez, MiMA,
      realistic_continents_fixed_sst, realistic_continents_variable_qflux, socrates_aquaplanet,
      socrates_aquaplanet_cloud, ape_aquaplanet, top_down_test, variable_co2_grey, variable_co2_rrtm,
      barotropic_vort_eq_stirring, shallow_water_stirring, and column_test.
      column_test was compared by hand, because the harness crashed aligning the column's duplicate
      lonb values with the current xarray. That is a harness bug, unrelated to this PR.
    • axisymmetric: crashes on both commits. This is a known test-case bug, unrelated to this PR.
    • giant_planet: differs, but this isn't caused by the PR. Running master twice also differs, by the
      same amount (ps up to 1.0 vs 1.25 Pa between commits), so this case isn't reproducible run to run.
      isca.x doesn't compile any Socrates code anyway.
    • grey_mars, radiative_eq_mars: not reached, because the harness stopped at column_test. They use the
      grey codebase, which doesn't compile Socrates.
  • Climate impact (SimCloud, T42 prescribed SST): see #ISSUE. SW CRE is about −9 W m⁻² stronger with the fix at
    fixed qcl_val.

Note: SimCloud's qcl_val (Liu et al. 2021) was tuned with the old behaviour. Turning the switch on needs qcl_val
retuned (≈ 0.09 g/kg in our T42 tests).

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant