Skip to content

Commit 72b4169

Browse files
author
Rémi Kazeroni
authored
Fix areacello in BCC-CSM2-MR (#1993)
1 parent 569be10 commit 72b4169

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

esmvalcore/cmor/_fixes/cmip6/bcc_csm2_mr.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""Fixes for BCC-CSM2-MR model."""
22
from ..common import ClFixHybridPressureCoord, OceanFixGrid
33

4+
Areacello = OceanFixGrid
5+
6+
47
Cl = ClFixHybridPressureCoord
58

69

tests/integration/cmor/_fixes/cmip6/test_bcc_csm2_mr.py

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Test fixes for BCC-CSM2-MR."""
22
from esmvalcore.cmor._fixes.cmip6.bcc_csm2_mr import (
3+
Areacello,
34
Cl,
45
Cli,
56
Clw,
@@ -14,6 +15,17 @@
1415
from esmvalcore.cmor._fixes.fix import Fix
1516

1617

18+
def test_get_areacello_fix():
19+
"""Test getting of fix."""
20+
fix = Fix.get_fixes('CMIP6', 'BCC-CSM2-MR', 'Amon', 'areacello')
21+
assert fix == [Areacello(None)]
22+
23+
24+
def test_areacello_fix():
25+
"""Test fix for ``areacello``."""
26+
assert Areacello is OceanFixGrid
27+
28+
1729
def test_get_cl_fix():
1830
"""Test getting of fix."""
1931
fix = Fix.get_fixes('CMIP6', 'BCC-CSM2-MR', 'Amon', 'cl')

0 commit comments

Comments
 (0)