Commit 00272081 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'glspace_codomain' into 'NIFTy_5'

better `get_default_codomain` for GLSpace

See merge request !320
parents c2bfa5d3 6dd5a62f
Pipeline #47460 passed with stages
in 9 minutes and 9 seconds
......@@ -103,7 +103,9 @@ class GLSpace(StructuredDomain):
The partner domain
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):
"""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