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
74f4a117
Commit
74f4a117
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use nullptr
parent
b8e40cf0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/tectonic/globalruinanonlinearity.hh
+2
-1
2 additions, 1 deletion
dune/tectonic/globalruinanonlinearity.hh
dune/tectonic/myblockproblem.hh
+3
-2
3 additions, 2 deletions
dune/tectonic/myblockproblem.hh
with
5 additions
and
3 deletions
dune/tectonic/globalruinanonlinearity.hh
+
2
−
1
View file @
74f4a117
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include
<vector>
#include
<vector>
#include
<dune/common/nullptr.hh>
#include
<dune/common/fmatrix.hh>
#include
<dune/common/fmatrix.hh>
#include
<dune/common/fvector.hh>
#include
<dune/common/fvector.hh>
#include
<dune/istl/bcrsmatrix.hh>
#include
<dune/istl/bcrsmatrix.hh>
...
@@ -45,7 +46,7 @@ class GlobalRuinaNonlinearity
...
@@ -45,7 +46,7 @@ class GlobalRuinaNonlinearity
if
((
*
nodalIntegrals
)[
i
][
0
]
==
0
)
if
((
*
nodalIntegrals
)[
i
][
0
]
==
0
)
return
trivialNonlinearity
;
return
trivialNonlinearity
;
if
(
restrictions
[
i
]
!=
NULL
)
if
(
restrictions
[
i
]
!=
nullptr
)
return
restrictions
[
i
];
return
restrictions
[
i
];
auto
const
func
=
make_shared
<
RuinaFunction
const
>
(
auto
const
func
=
make_shared
<
RuinaFunction
const
>
(
...
...
This diff is collapsed.
Click to expand it.
dune/tectonic/myblockproblem.hh
+
3
−
2
View file @
74f4a117
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#define MY_BLOCK_PROBLEM_HH
#define MY_BLOCK_PROBLEM_HH
#include
<dune/common/bitsetvector.hh>
#include
<dune/common/bitsetvector.hh>
#include
<dune/common/nullptr.hh>
#include
<dune/common/parametertree.hh>
#include
<dune/common/parametertree.hh>
#include
<dune/solvers/common/staticmatrixtools.hh>
#include
<dune/solvers/common/staticmatrixtools.hh>
...
@@ -242,7 +243,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
...
@@ -242,7 +243,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
assert
(
false
);
assert
(
false
);
}
}
LocalMatrixType
const
*
localA
=
NULL
;
LocalMatrixType
const
*
localA
=
nullptr
;
LocalVectorType
localb
(
problem
.
f
[
m
]);
LocalVectorType
localb
(
problem
.
f
[
m
]);
typename
MatrixType
::
row_type
::
ConstIterator
it
;
typename
MatrixType
::
row_type
::
ConstIterator
it
;
...
@@ -254,7 +255,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
...
@@ -254,7 +255,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
else
else
it
->
mmv
(
u
[
j
],
localb
);
// localb -= A[m][j] * u[j]
it
->
mmv
(
u
[
j
],
localb
);
// localb -= A[m][j] * u[j]
}
}
assert
(
localA
!=
NULL
);
assert
(
localA
!=
nullptr
);
auto
const
phi
=
problem
.
phi
.
restriction
(
m
);
auto
const
phi
=
problem
.
phi
.
restriction
(
m
);
Dune
::
SampleFunctional
<
block_size
>
localJ
(
*
localA
,
localb
,
phi
,
Dune
::
SampleFunctional
<
block_size
>
localJ
(
*
localA
,
localb
,
phi
,
...
...
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