Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
podlesny
dune-tectonic
Commits
b31e082d
Commit
b31e082d
authored
11 years ago
by
Elias Pipping
Committed by
Elias Pipping
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Kill an assertion (the code was buggy, too)
parent
d5a6e945
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/tectonic/myblockproblem.hh
+0
-20
0 additions, 20 deletions
dune/tectonic/myblockproblem.hh
with
0 additions
and
20 deletions
dune/tectonic/myblockproblem.hh
+
0
−
20
View file @
b31e082d
...
...
@@ -170,26 +170,6 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
// -grad is needed for Newton step
linearization
.
b
*=
-
1.0
;
// b should be a descent direction
{
VectorType
const
direction
=
linearization
.
b
;
VectorType
tmp
=
linearization
.
b
;
// b
Arithmetic
::
addProduct
(
tmp
,
-
1.0
,
linearization
.
A
,
u
);
// b-Au
double
const
localA
=
tmp
*
direction
;
// <b-Au,v>
linearization
.
A
.
mv
(
direction
,
tmp
);
// Av
double
const
localb
=
tmp
*
direction
;
// <Av,v>
MyDirectionalConvexFunction
<
Dune
::
GlobalNonlinearity
<
MatrixType
,
VectorType
>>
const
psi
(
localA
,
localb
,
problem
.
phi
,
u
,
direction
);
Interval
<
double
>
D
;
psi
.
subDiff
(
0
,
D
);
if
(
!
isnan
(
D
[
1
]))
assert
(
D
[
1
]
<=
0
);
}
// apply truncation to stiffness matrix and rhs
for
(
size_t
row
=
0
;
row
<
linearization
.
A
.
N
();
++
row
)
{
auto
const
col_end
=
linearization
.
A
[
row
].
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