Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pystencils_autodiff
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
pycodegen
pystencils_autodiff
Commits
607fede5
Commit
607fede5
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Rename: WaldUndWiesenSimulation -> Simulation
parent
d3674fdd
No related branches found
No related tags found
No related merge requests found
Pipeline
#21590
canceled
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pystencils_autodiff/simulation.py
+2
-2
2 additions, 2 deletions
src/pystencils_autodiff/simulation.py
tests/test_walberla.py
+3
-3
3 additions, 3 deletions
tests/test_walberla.py
with
5 additions
and
5 deletions
src/pystencils_autodiff/
wald_und_wiesen_
simulation.py
→
src/pystencils_autodiff/simulation.py
+
2
−
2
View file @
607fede5
...
@@ -22,7 +22,7 @@ from pystencils_autodiff.walberla import (
...
@@ -22,7 +22,7 @@ from pystencils_autodiff.walberla import (
SweepCreation
,
SweepOverAllBlocks
,
UniformBlockforestFromConfig
,
WalberlaMain
,
WalberlaModule
)
SweepCreation
,
SweepOverAllBlocks
,
UniformBlockforestFromConfig
,
WalberlaMain
,
WalberlaModule
)
class
WaldUndWiesen
Simulation
():
class
Simulation
():
def
_get_sweep_class_name
(
prefix
=
'
Kernel
'
):
def
_get_sweep_class_name
(
prefix
=
'
Kernel
'
):
ctr
=
0
ctr
=
0
...
@@ -46,7 +46,7 @@ class WaldUndWiesenSimulation():
...
@@ -46,7 +46,7 @@ class WaldUndWiesenSimulation():
self
.
_boundary_handling
=
boundary_handling
self
.
_boundary_handling
=
boundary_handling
self
.
_lb_model_name
=
'
GeneratedLatticeModel
'
self
.
_lb_model_name
=
'
GeneratedLatticeModel
'
self
.
_flag_field_dtype
=
'
uint32_t
'
self
.
_flag_field_dtype
=
'
uint32_t
'
self
.
_kernel_class_generator
=
WaldUndWiesen
Simulation
.
_get_sweep_class_name
()
self
.
_kernel_class_generator
=
Simulation
.
_get_sweep_class_name
()
self
.
_with_gui
=
False
self
.
_with_gui
=
False
self
.
_with_gui_default
=
False
self
.
_with_gui_default
=
False
self
.
_boundary_kernels
=
{}
self
.
_boundary_kernels
=
{}
...
...
This diff is collapsed.
Click to expand it.
tests/test_walberla.py
+
3
−
3
View file @
607fede5
...
@@ -21,7 +21,7 @@ from pystencils_autodiff.graph_datahandling import GraphDataHandling
...
@@ -21,7 +21,7 @@ from pystencils_autodiff.graph_datahandling import GraphDataHandling
from
pystencils_autodiff.walberla
import
(
from
pystencils_autodiff.walberla
import
(
DefinitionsHeader
,
FieldAllocation
,
FlagFieldAllocation
,
GetParameter
,
DefinitionsHeader
,
FieldAllocation
,
FlagFieldAllocation
,
GetParameter
,
ResolveUndefinedSymbols
,
UniformBlockforestFromConfig
,
WalberlaMain
,
WalberlaModule
)
ResolveUndefinedSymbols
,
UniformBlockforestFromConfig
,
WalberlaMain
,
WalberlaModule
)
from
pystencils_autodiff.wald_und_wiesen_simulation
import
WaldUndWiesen
Simulation
from
pystencils_autodiff.wald_und_wiesen_simulation
import
Simulation
from
pystencils_walberla.cmake_integration
import
ManualCodeGenerationContext
from
pystencils_walberla.cmake_integration
import
ManualCodeGenerationContext
...
@@ -66,7 +66,7 @@ def test_wald_wiesen_simulation():
...
@@ -66,7 +66,7 @@ def test_wald_wiesen_simulation():
dh
.
add_arrays
(
'
x, y
'
)
dh
.
add_arrays
(
'
x, y
'
)
dh
.
add_arrays
(
'
w, z
'
,
gpu
=
True
)
dh
.
add_arrays
(
'
w, z
'
,
gpu
=
True
)
sim
=
WaldUndWiesen
Simulation
(
dh
,
ctx
)
sim
=
Simulation
(
dh
,
ctx
)
print
(
sim
.
_create_module
())
print
(
sim
.
_create_module
())
...
@@ -82,7 +82,7 @@ def test_wald_wiesen_lbm():
...
@@ -82,7 +82,7 @@ def test_wald_wiesen_lbm():
del
lbm_step
.
data_handling
.
gpu_arrays
.
ldc_pdf_tmp
del
lbm_step
.
data_handling
.
gpu_arrays
.
ldc_pdf_tmp
sim
=
WaldUndWiesen
Simulation
(
lbm_step
.
data_handling
,
sim
=
Simulation
(
lbm_step
.
data_handling
,
ctx
,
ctx
,
lbm_step
.
boundary_handling
,
lbm_step
.
boundary_handling
,
create_lb_collision_rule
(
lbm_step
.
method
,
optimization
=
opt_params
))
create_lb_collision_rule
(
lbm_step
.
method
,
optimization
=
opt_params
))
...
...
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