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
5ae4b635
Commit
5ae4b635
authored
Dec 12, 2021
by
Stephan Hilb
Browse files
Options
Downloads
Patches
Plain Diff
remove unused method
parent
df151355
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/image.jl
+0
-27
0 additions, 27 deletions
src/image.jl
with
0 additions
and
27 deletions
src/image.jl
+
0
−
27
View file @
5ae4b635
...
@@ -268,33 +268,6 @@ function project_qi_lagrange!(u::FeFunction, img)
...
@@ -268,33 +268,6 @@ function project_qi_lagrange!(u::FeFunction, img)
return
u
return
u
end
end
# FIXME: unfinished / unused -> remove?
function
quadrature_cell_pixels
(
mesh
,
cell
;
m0
)
d
=
ndims_domain
(
mesh
)
A
=
SArray
{
Tuple
{
ndims_space
(
mesh
),
nvertices_cell
(
mesh
)}}(
view
(
mesh
.
vertices
,
:
,
view
(
mesh
.
cells
,
:
,
cell
)))
# TODO: cleanup when minimum/maximum with dims on StaticArrays becomes
# type-stable
I0
=
round
.
(
Int
,
SVector
(
minimum
(
A
[
1
,
:
]),
minimum
(
A
[
2
,
:
]))
.-
m0
)
.+
1
I1
=
round
.
(
Int
,
SVector
(
maximum
(
A
[
1
,
:
]),
maximum
(
A
[
2
,
:
]))
.-
m0
)
.+
1
#quadrature() = SA[1/6, 1/6, 1/6], SA[1/6 4/6 1/6; 1/6 1/6 4/6]
vertices
=
Float64
[]
for
I
in
CartesianIndex
(
I0
[
1
],
I0
[
2
])
:
CartesianIndex
(
I1
[
1
],
I1
[
2
])
x
=
SVector
(
Tuple
(
I
)
.-
1
.+
m0
)
# TODO: move to global-to-local function or inside-triangle test
xloc
=
(
A
[
:
,
SUnitRange
(
2
,
3
)]
.-
A
[
:
,
1
])
::
SArray
\
(
x
.-
A
[
:
,
1
])
ε
=
eps
()
if
all
(
xloc
.>=
-
ε
)
&&
sum
(
xloc
)
<=
1
+
ε
append!
(
vertices
,
xloc
)
end
end
qw
=
ones
(
length
(
vertices
)
÷
d
)
./
length
(
vertices
)
qx
=
reshape!
(
vertices
,
(
d
,
:
))
end
struct
PixelIterator
{
A
,
G
}
struct
PixelIterator
{
A
,
G
}
"cell vertices"
"cell vertices"
A
::
A
A
::
A
...
...
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