Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
13
Merge Requests
13
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
52e58aeb
Commit
52e58aeb
authored
Dec 05, 2019
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary copy
parent
7b97a739
Pipeline
#64982
passed with stages
in 8 minutes and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
nifty6/operators/field_zero_padder.py
nifty6/operators/field_zero_padder.py
+1
-1
nifty6/operators/regridding_operator.py
nifty6/operators/regridding_operator.py
+1
-1
No files found.
nifty6/operators/field_zero_padder.py
View file @
52e58aeb
...
...
@@ -110,5 +110,5 @@ class FieldZeroPadder(LinearOperator):
xnew
=
v
[
idx
+
(
slice
(
0
,
tgtshp
[
d
]),)]
curshp
[
d
]
=
xnew
.
shape
[
d
]
v
=
xnew
.
copy
()
v
=
xnew
return
Field
(
self
.
_tgt
(
mode
),
v
)
nifty6/operators/regridding_operator.py
View file @
52e58aeb
...
...
@@ -91,5 +91,5 @@ class RegriddingOperator(LinearOperator):
xnew
+=
v
[
idx
+
(
self
.
_bindex
[
d
-
d0
]
+
1
,)]
*
wgt
curshp
[
d
]
=
xnew
.
shape
[
d
]
v
=
xnew
.
copy
()
v
=
xnew
return
Field
(
self
.
_tgt
(
mode
),
xnew
)
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