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
Model registry
Operate
Environments
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
Jonas Plewinski
pystencils
Commits
ec890b10
Commit
ec890b10
authored
6 years ago
by
Martin Bauer
Browse files
Options
Downloads
Patches
Plain Diff
N phase model working
-> test_numerical_1D notebook
parent
807ee8b1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boundaries/inkernel.py
+2
-2
2 additions, 2 deletions
boundaries/inkernel.py
with
2 additions
and
2 deletions
boundaries/inkernel.py
+
2
−
2
View file @
ec890b10
import
sympy
as
sp
import
sympy
as
sp
from
pystencils
import
Field
,
TypedSymbol
from
pystencils
import
Field
,
TypedSymbol
from
pystencils.integer_functions
import
bitwise_and
from
pystencils.integer_functions
import
bitwise_and
from
pystencils.boundaries.boundaryhandling
import
FlagInterface
from
pystencils.boundaries.boundaryhandling
import
DEFAULT_FLAG_TYPE
from
pystencils.data_types
import
create_type
from
pystencils.data_types
import
create_type
...
@@ -22,7 +22,7 @@ def add_neumann_boundary(eqs, fields, flag_field, boundary_flag="neumann_flag",
...
@@ -22,7 +22,7 @@ def add_neumann_boundary(eqs, fields, flag_field, boundary_flag="neumann_flag",
fields
=
set
(
fields
)
fields
=
set
(
fields
)
if
type
(
boundary_flag
)
is
str
:
if
type
(
boundary_flag
)
is
str
:
boundary_flag
=
TypedSymbol
(
boundary_flag
,
dtype
=
create_type
(
FlagInterface
.
FLAG_
D
TYPE
))
boundary_flag
=
TypedSymbol
(
boundary_flag
,
dtype
=
create_type
(
DEFAULT_
FLAG_TYPE
))
substitutions
=
{}
substitutions
=
{}
for
eq
in
eqs
:
for
eq
in
eqs
:
...
...
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