Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SemiSmoothNewton.jl
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
Container registry
Model registry
Operate
Environments
Terraform modules
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephan Hilb
SemiSmoothNewton.jl
Commits
3eaf3226
Commit
3eaf3226
authored
Jul 14, 2021
by
Stephan Hilb
Browse files
Options
Downloads
Patches
Plain Diff
fix prolongation ldofs
became broken because cells no longer assume ordered vertices
parent
55b9c3aa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh.jl
+6
-3
6 additions, 3 deletions
src/mesh.jl
with
6 additions
and
3 deletions
src/mesh.jl
+
6
−
3
View file @
3eaf3226
...
@@ -287,7 +287,7 @@ function refine!(hmesh::HMesh, marked_cells::Set; fs...)
...
@@ -287,7 +287,7 @@ function refine!(hmesh::HMesh, marked_cells::Set; fs...)
end
end
# prolong data for refined cells
# prolong data for refined cells
for
(
old_cell
,
extended_cells
)
in
refined_cells
for
(
old_cell
,
extended_cells
)
in
refined_cells
for
(
f
,
extended_f
)
in
zip
(
NamedTuple
(
fs
),
extended_fs
)
for
extended_f
in
extended_fs
prolong!
(
extended_f
,
old_cell
,
extended_cells
)
prolong!
(
extended_f
,
old_cell
,
extended_cells
)
end
end
end
end
...
@@ -343,9 +343,12 @@ function prolong!(new_f, old_cell, new_cells, ::P1)
...
@@ -343,9 +343,12 @@ function prolong!(new_f, old_cell, new_cells, ::P1)
avg_data
=
(
old_f
.
data
[
old_gdofs
[
:
,
1
]]
.+
old_f
.
data
[
old_gdofs
[
:
,
2
]])
./
2
avg_data
=
(
old_f
.
data
[
old_gdofs
[
:
,
1
]]
.+
old_f
.
data
[
old_gdofs
[
:
,
2
]])
./
2
new_gdofs
=
new_f
.
space
.
dofmap
[
:
,
3
,
new_cells
[
1
]]
_
,
newldof
=
findmax
(
new_cell1_vs
)
new_gdofs
=
new_f
.
space
.
dofmap
[
:
,
newldof
,
new_cells
[
1
]]
new_f
.
data
[
new_gdofs
]
.=
avg_data
new_f
.
data
[
new_gdofs
]
.=
avg_data
new_gdofs
=
new_f
.
space
.
dofmap
[
:
,
3
,
new_cells
[
2
]]
_
,
newldof
=
findmax
(
new_cell2_vs
)
new_gdofs
=
new_f
.
space
.
dofmap
[
:
,
newldof
,
new_cells
[
2
]]
new_f
.
data
[
new_gdofs
]
.=
avg_data
new_f
.
data
[
new_gdofs
]
.=
avg_data
end
end
...
...
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