Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-mmdg
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hörl, Maximilian
dune-mmdg
Commits
3d379c05
Commit
3d379c05
authored
Mar 22, 2020
by
Hörl, Maximilian
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix] fix index error in interface vtk output
parent
b11006cd
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
dune/mmdg/mmdg.hh
+7
-8
7 additions, 8 deletions
dune/mmdg/mmdg.hh
with
7 additions
and
8 deletions
dune/mmdg/mmdg.hh
+
7
−
8
View file @
3d379c05
...
...
@@ -46,6 +46,8 @@ public:
(
*
Base
::
A
).
solve
(
Base
::
d
,
Base
::
b
);
std
::
cout
<<
"
\n\n
"
<<
Base
::
b
<<
"
\n\n
"
<<
Base
::
d
<<
"
\n\n
"
;
// Dune::InverseOperatorResult result;
// Dune::UMFPack<Matrix> solver(*Base::A);
// solver.apply(Base::d, Base::b, result);
...
...
@@ -471,8 +473,6 @@ private:
(
*
Base
::
A
)[
iElemIdxSLE
+
i
+
1
][
iElemIdxSLE
+
i
+
1
]
+=
centerI
*
(
interfaceUpdate1
-
interfaceUpdate2
);
std
::
cout
<<
iElemIdxSLE
+
i
+
1
<<
"
\t
"
<<
interfaceUpdate3
<<
"
\t
"
<<
centerI
*
(
interfaceUpdate1
-
interfaceUpdate2
);
for
(
int
j
=
0
;
j
<
i
;
i
++
)
{
//NOTE: only relevant for n=3, requires quadrature rule for n=3
Coordinate
KparDotTau_j
;
...
...
@@ -593,8 +593,6 @@ private:
(
*
Base
::
A
)[
iElemIdxSLE
+
i
+
1
][
iElemIdxSLE
+
i
+
1
]
+=
centerI
*
(
interfaceUpdate1
-
2.0
*
interfaceUpdate2
);
std
::
cout
<<
iElemIdxSLE
+
i
+
1
<<
"
\t
"
<<
iFrame
[
i
]
<<
"
\t
"
<<
center
*
iFrame
[
i
]
<<
"
\t
"
<<
interfaceUpdate3
<<
"
\t
"
<<
centerI
*
(
interfaceUpdate1
-
2.0
*
interfaceUpdate2
)
<<
"
\n\n
"
;
for
(
int
j
=
0
;
j
<
i
;
i
++
)
{
//NOTE: only relevant for n=3, requires quadrature rule for n=3
Coordinate
KparDotTau_j
;
...
...
@@ -670,7 +668,8 @@ private:
for
(
const
auto
&
iElem
:
elements
(
iGridView_
))
{
const
int
iElemIdxSLE
=
bulkDOF
+
dim
*
iMapper_
.
index
(
iElem
);
const
int
iElemIdxOutput
=
dim
*
iMapper_
.
index
(
iElem
);
const
int
iElemIdxSLE
=
bulkDOF
+
iElemIdxOutput
;
const
auto
&
iGeo
=
iElem
.
geometry
();
//get basis of the interface coordinate system for evaluation of
...
...
@@ -682,21 +681,21 @@ private:
{
if
(
Base
::
problem_
.
hasExactSolution
())
{
exactIPressure
[
iElemIdx
SLE
+
k
]
=
exactIPressure
[
iElemIdx
Output
+
k
]
=
Base
::
problem_
.
exactInterfaceSolution
(
iGeo
.
corner
(
k
));
}
//contribution of the basis function
// phi_iElem,0 (x) = indicator(iElem);
//at the kth corner of iElem
iPressure
[
iElemIdx
SLE
+
k
]
=
Base
::
d
[
iElemIdxSLE
];
iPressure
[
iElemIdx
Output
+
k
]
=
Base
::
d
[
iElemIdxSLE
];
for
(
int
i
=
0
;
i
<
dim
-
1
;
i
++
)
{
//contribution of the basis function
// phi_iElem,i (x) = (x * tau[i]) * indicator(iElem);
//at the kth corner of iElem
iPressure
[
iElemIdx
SLE
+
k
]
+=
iPressure
[
iElemIdx
Output
+
k
]
+=
Base
::
d
[
iElemIdxSLE
+
i
+
1
]
*
(
iGeo
.
corner
(
k
)
*
iFrame
[
i
]);
}
}
...
...
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