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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
0f1e4c12
Commit
0f1e4c12
authored
Aug 12, 2015
by
Ultima
Browse files
Implemented multidimensional data on fields.
parent
7f240569
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
nifty_core.py
View file @
0f1e4c12
This diff is collapsed.
Click to expand it.
nifty_mpi_data.py
View file @
0f1e4c12
...
...
@@ -348,7 +348,6 @@ class distributed_data_object(object):
## use common datatype for self and other
new_dtype
=
np
.
dtype
(
np
.
find_common_type
((
self
.
dtype
,),
(
temp_data
.
dtype
,))).
type
print
new_dtype
temp_d2o
=
self
.
copy_empty
(
dtype
=
new_dtype
)
temp_d2o
.
set_local_data
(
data
=
temp_data
)
...
...
rg/nifty_rg.py
View file @
0f1e4c12
...
...
@@ -631,7 +631,7 @@ class rg_space(point_space):
## Check hermitianity/reality
if
self
.
paradict
[
'complexity'
]
==
0
:
if
x
.
iscomplex
().
any
()
==
Fals
e
:
if
x
.
iscomplex
().
any
()
==
Tru
e
:
about
.
warnings
.
cflush
(
\
"WARNING: Data is not completely real. Imaginary part "
+
\
"will be discarded!
\n
"
)
...
...
@@ -1314,7 +1314,6 @@ class rg_space(point_space):
## weight
x
=
x
*
self
.
get_weight
(
power
=
power
)
return
x
def
get_weight
(
self
,
power
=
1
):
...
...
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