Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix areacello in BCC-CSM2-MR #1993

Merged
merged 3 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions esmvalcore/cmor/_fixes/cmip6/bcc_csm2_mr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""Fixes for BCC-CSM2-MR model."""
from ..common import ClFixHybridPressureCoord, OceanFixGrid

Areacello = OceanFixGrid


Cl = ClFixHybridPressureCoord


Expand Down
12 changes: 12 additions & 0 deletions tests/integration/cmor/_fixes/cmip6/test_bcc_csm2_mr.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test fixes for BCC-CSM2-MR."""
from esmvalcore.cmor._fixes.cmip6.bcc_csm2_mr import (
Areacello,
Cl,
Cli,
Clw,
Expand All @@ -14,6 +15,17 @@
from esmvalcore.cmor._fixes.fix import Fix


def test_get_areacello_fix():
"""Test getting of fix."""
fix = Fix.get_fixes('CMIP6', 'BCC-CSM2-MR', 'Amon', 'areacello')
assert fix == [Areacello(None)]


def test_areacello_fix():
"""Test fix for ``areacello``."""
assert Areacello is OceanFixGrid


def test_get_cl_fix():
"""Test getting of fix."""
fix = Fix.get_fixes('CMIP6', 'BCC-CSM2-MR', 'Amon', 'cl')
Expand Down