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
Open sidebar
Alexander Reinauer
pystencils
Commits
9b4a480b
Commit
9b4a480b
authored
Feb 21, 2020
by
Christoph Rettinger
Browse files
Added guard around import to avoid failing when walberla is there but no python module is built
parent
593613c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/boundaries/boundaryhandling.py
View file @
9b4a480b
...
...
@@ -8,11 +8,18 @@ from pystencils.boundaries.createindexlist import (
create_boundary_index_array
,
numpy_data_type_for_boundary_object
)
from
pystencils.cache
import
memorycache
from
pystencils.data_types
import
TypedSymbol
,
create_type
from
pystencils.datahandling
import
ParallelDataHandling
from
pystencils.datahandling.pycuda
import
PyCudaArrayHandler
from
pystencils.field
import
Field
from
pystencils.kernelparameters
import
FieldPointerSymbol
try
:
# noinspection PyPep8Naming
import
waLBerla
as
wlb
if
wlb
.
cpp_available
:
from
pystencils.datahandling.parallel_datahandling
import
ParallelDataHandling
except
ImportError
:
ParallelDataHandling
=
None
DEFAULT_FLAG_TYPE
=
np
.
uint32
...
...
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