Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Alt
pystencils
Commits
9b4a480b
Commit
9b4a480b
authored
5 years ago
by
Christoph Rettinger
Browse files
Options
Downloads
Patches
Plain Diff
Added guard around import to avoid failing when walberla is there but no python module is built
parent
593613c5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/boundaries/boundaryhandling.py
+8
-1
8 additions, 1 deletion
pystencils/boundaries/boundaryhandling.py
with
8 additions
and
1 deletion
pystencils/boundaries/boundaryhandling.py
+
8
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment