Commit 6dd5a62f authored by Martin Reinecke's avatar Martin Reinecke
Browse files


parent 35dc4f9b
Pipeline #47459 passed with stages
in 8 minutes and 14 seconds
...@@ -103,7 +103,9 @@ class GLSpace(StructuredDomain): ...@@ -103,7 +103,9 @@ class GLSpace(StructuredDomain):
The partner domain The partner domain
""" """
from import LMSpace from 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment