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
Jonas Plewinski
pystencils
Commits
b3d7062a
Commit
b3d7062a
authored
Feb 01, 2019
by
Martin Bauer
Browse files
Adapted tests to changes in walberla sweep generation
parent
115d558d
Changes
3
Hide whitespace changes
Inline
Side-by-side
datahandling/serial_datahandling.py
View file @
b3d7062a
...
...
@@ -373,8 +373,7 @@ class SerialDataHandling(DataHandling):
ghost_layers
=
actual_ghost_layers
gl_to_remove
=
actual_ghost_layers
-
ghost_layers
assert
len
(
self
.
_field_information
[
name
][
'values_per_cell'
])
==
1
ind_dims
=
1
if
self
.
_field_information
[
name
][
'values_per_cell'
][
0
]
>
1
else
0
ind_dims
=
len
(
self
.
_field_information
[
name
][
'values_per_cell'
])
return
remove_ghost_layers
(
self
.
cpu_arrays
[
name
],
ind_dims
,
gl_to_remove
)
def
log
(
self
,
*
args
,
level
=
'INFO'
):
...
...
kernelcreation.py
View file @
b3d7062a
...
...
@@ -158,6 +158,7 @@ def create_indexed_kernel(assignments, index_fields, target='cpu', data_type="do
else
:
raise
ValueError
(
"Unknown target %s. Has to be either 'cpu' or 'gpu'"
%
(
target
,))
def
create_staggered_kernel_from_assignments
(
assignments
,
**
kwargs
):
assert
'iteration_slice'
not
in
kwargs
and
'ghost_layers'
not
in
kwargs
lhs_fields
=
{
a
.
lhs
.
atoms
(
Field
.
Access
)
for
a
in
assignments
}
...
...
slicing.py
View file @
b3d7062a
...
...
@@ -17,6 +17,7 @@ class SlicedGetter(object):
def
__getitem__
(
self
,
item
):
return
self
.
_functionReturningArray
(
item
)
class
SlicedGetterDataHandling
:
def
__init__
(
self
,
data_handling
,
name
):
self
.
dh
=
data_handling
...
...
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