Skip to content
GitLab
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
c6c62ad6
Commit
c6c62ad6
authored
Jul 16, 2018
by
Reimar H Leike
Browse files
more documentation
parent
af1d849c
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/domain_tuple.py
View file @
c6c62ad6
...
...
@@ -27,6 +27,8 @@ class DomainTuple(object):
This class holds a tuple of :class:`Domain` objects, which together form
the space on which a :class:`Field` is defined.
This corresponds to a tensor product of the corresponding vector
fields.
Notes
-----
...
...
nifty5/multi/multi_domain.py
View file @
c6c62ad6
...
...
@@ -27,6 +27,21 @@ class MultiDomain(object):
_domainCache
=
{}
def
__init__
(
self
,
dict
,
_callingfrommake
=
False
):
"""A tuple of domains corresponding to a direct sum.
This class is the domain of the direct sum of fields living
over (possibly different) domains. To make an instance
of this class call .make(inp)
Parameters
----------
inp : MultiDomain or tuple(DomainTuple)
The already built MultiDomain or a tuple of DomainTuples
Returns
------
A MutliDomain with the input Domains as domains
"""
if
not
_callingfrommake
:
raise
NotImplementedError
(
'To create a MultiDomain call `MultiDomain.make()`.'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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