Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
fd8bdf02
Commit
fd8bdf02
authored
Jun 14, 2016
by
theos
Browse files
Changed keyword defaults for propagator_operator.
Added multithreading to fftw module.
parent
0a66e891
Changes
2
Hide whitespace changes
Inline
Side-by-side
operators/nifty_operators.py
View file @
fd8bdf02
...
...
@@ -3387,8 +3387,8 @@ class propagator_operator(operator):
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: At least M or N must be given."
))
def
_multiply
(
self
,
x
,
W
=
None
,
spam
=
None
,
reset
=
None
,
note
=
Fals
e
,
x0
=
None
,
tol
=
1E-
4
,
clevel
=
1
,
limii
=
None
,
**
kwargs
):
def
_multiply
(
self
,
x
,
W
=
None
,
spam
=
None
,
reset
=
None
,
note
=
Tru
e
,
x0
=
None
,
tol
=
1E-
3
,
clevel
=
1
,
limii
=
None
,
**
kwargs
):
if
W
is
None
:
W
=
self
.
S
...
...
rg/nifty_fft.py
View file @
fd8bdf02
...
...
@@ -3,7 +3,7 @@
import
numpy
as
np
from
d2o
import
distributed_data_object
from
nifty.config
import
dependency_injector
as
gdi
import
os
pyfftw
=
gdi
.
get
(
'pyfftw'
)
gfft
=
gdi
.
get
(
'gfft'
)
gfft_dummy
=
gdi
.
get
(
'gfft_dummy'
)
...
...
@@ -388,6 +388,7 @@ class _fftw_plan_and_info(object):
output_dtype
=
self
.
output_dtype
,
direction
=
self
.
direction
,
flags
=
[
"FFTW_ESTIMATE"
],
threads
=
int
(
os
.
environ
[
'MY_FFTW_THREADS'
]),
**
kwargs
)
)
...
...
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