Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DG1d.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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
DG1d.jl
Commits
065b6e57
Commit
065b6e57
authored
8 months ago
by
Florian Atteneder
Browse files
Options
Downloads
Patches
Plain Diff
fix lgl mass_matrix_exact (
!191
)
parent
54071f65
No related branches found
Branches containing commit
No related tags found
1 merge request
!191
fix lgl mass_matrix_exact
Pipeline
#7092
passed
8 months ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lgl.jl
+4
-4
4 additions, 4 deletions
src/lgl.jl
with
4 additions
and
4 deletions
src/lgl.jl
+
4
−
4
View file @
065b6e57
...
...
@@ -82,10 +82,10 @@ function mass_matrix_exact(n_pts)
aux_z
,
aux_w
=
rule
(
n_pts
+
2
)
L
(
i
,
x
)
=
lagrange_poly
(
i
,
x
,
z
)
M
=
zeros
(
n_pts
,
n_pts
)
for
i
=
1
:
N
pts
,
j
=
1
:
N
pts
li
=
L
.
(
i
,
z
)
for
i
=
1
:
n_
pts
,
j
=
1
:
n_
pts
li
=
L
.
(
i
,
aux_
z
)
for
j
=
i
:
n_pts
lj
=
L
.
(
j
,
z
)
lj
=
L
.
(
j
,
aux_
z
)
M
[
i
,
j
]
=
integrate
(
aux_w
,
li
,
lj
)
if
(
i
!=
j
)
M
[
j
,
i
]
=
M
[
i
,
j
]
...
...
@@ -129,7 +129,7 @@ end
"""
L_ij = (P_i, P_j)
Analogon to mass matrix of Lagrange polynomials, expresses the linear dependency
of the numerical representation of the Legendre basis.
of the numerical representation of the Legendre basis.
x ... GLGL nodes
w ... GLGL weights
"""
...
...
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