Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dune-fem
dune-fem-dg
Commits
c7e0cd1c
Commit
c7e0cd1c
authored
1 week ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup][femDGOperator] Remove gridSizeInterior here since it's already
exported in operator.hh
parent
2962db3d
No related branches found
Branches containing commit
No related tags found
1 merge request
!67
[cleanup][femDGOperator] Remove gridSizeInterior here since it's already exported in operator.hh
Pipeline
#77347
passed
1 week ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pydemo/camc-paper/evolve.py
+3
-3
3 additions, 3 deletions
pydemo/camc-paper/evolve.py
python/dune/femdg/_operators.py
+0
-2
0 additions, 2 deletions
python/dune/femdg/_operators.py
with
3 additions
and
5 deletions
pydemo/camc-paper/evolve.py
+
3
−
3
View file @
c7e0cd1c
...
...
@@ -105,7 +105,7 @@ def evolve(gridView, order, Model, outName,
operator
.
applyLimiter
(
U_h
)
maxSize
=
gridView
.
comm
.
sum
(
operator
.
gridSizeInterior
()
)
maxSize
=
gridView
.
comm
.
sum
(
operator
.
gridSizeInterior
)
maxSize
*=
2
**
(
gridView
.
dimension
*
maxLevel
)
minMax
=
lambda
U_h
:
None
...
...
@@ -133,7 +133,7 @@ def evolve(gridView, order, Model, outName,
U_h
.
interpolate
(
Model
.
U0
)
operator
.
applyLimiter
(
U_h
)
gridSize
=
gridView
.
comm
.
sum
(
operator
.
gridSizeInterior
()
)
gridSize
=
gridView
.
comm
.
sum
(
operator
.
gridSizeInterior
)
minMax
(
U_h
)
print
(
i
,
"
: size=
"
,
gridSize
,
"
, maxSize =
"
,
maxSize
,
"
dt=
"
,
dt
,
"
tol=
"
,
hTol
)
...
...
@@ -164,7 +164,7 @@ def evolve(gridView, order, Model, outName,
t
+=
dt
if
t
>
saveStep
:
gridSize
=
gridView
.
comm
.
sum
(
operator
.
gridSizeInterior
()
)
gridSize
=
gridView
.
comm
.
sum
(
operator
.
gridSizeInterior
)
minMax
(
U_h
)
print
(
"
# t,dt,size,tol:
"
,
t
,
dt
,
gridSize
,
-
1
if
maxLevel
<=
0
else
hTol
)
fvU
.
interpolate
(
U_h
)
...
...
This diff is collapsed.
Click to expand it.
python/dune/femdg/_operators.py
+
0
−
2
View file @
c7e0cd1c
...
...
@@ -542,8 +542,6 @@ def femDGOperator(Model, space,
args
=
[
'
DuneType &self, typename DuneType::TroubledCellIndicatorType indicator
'
],
body
=
[
'
self.setTroubledCellIndicator(indicator);
'
],
extra
=
[
'
pybind11::keep_alive<0,1>()
'
])
)
# gridSizeInterior
extraMethods
.
append
(
Method
(
'
gridSizeInterior
'
,
'
&DuneType::gridSizeInterior
'
)
)
# limiter indicator
extraMethods
.
append
(
Method
(
'
_indicator
'
,
'
&DuneType::indicator
'
)
)
...
...
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