Skip to content
Snippets Groups Projects
Commit 6dd5a62f authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent 35dc4f9b
No related branches found
No related tags found
1 merge request!320better `get_default_codomain` for GLSpace
Pipeline #47459 passed
...@@ -103,7 +103,9 @@ class GLSpace(StructuredDomain): ...@@ -103,7 +103,9 @@ class GLSpace(StructuredDomain):
The partner domain The partner domain
""" """
from ..domains.lm_space import LMSpace from ..domains.lm_space import LMSpace
return LMSpace(lmax=self._nlat-1, mmax=self._nlon//2) mmax = self._nlon//2
lmax = max(mmax, self._nlat-1)
return LMSpace(lmax=lmax, mmax=mmax)
def check_codomain(self, codomain): def check_codomain(self, codomain):
"""Raises `TypeError` if `codomain` is not a matching partner domain """Raises `TypeError` if `codomain` is not a matching partner domain
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment