Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
00272081
Commit
00272081
authored
Apr 29, 2019
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/domains/gl_space.py
View file @
00272081
...
...
@@ -103,7 +103,9 @@ class GLSpace(StructuredDomain):
The partner domain
"""
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
):
"""Raises `TypeError` if `codomain` is not a matching partner domain
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment