Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
2162ad04
Commit
2162ad04
authored
Sep 16, 2017
by
Dennis Gläser
Browse files
[nonlinear][newtoncontroller] use int to avoid compiler comparison warning
parent
7f4b0032
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/nonlinear/newtoncontroller.hh
View file @
2162ad04
...
...
@@ -382,14 +382,14 @@ public:
//! but it shouldn't impact performance too much
Dune
::
BlockVector
<
NumEqVector
>
xTmp
;
xTmp
.
resize
(
b
.
size
());
Dune
::
BlockVector
<
NumEqVector
>
bTmp
(
xTmp
);
for
(
int
i
=
0
;
i
<
b
.
size
();
++
i
)
for
(
int
j
=
0
;
j
<
numEq
;
++
j
)
for
(
unsigned
int
i
=
0
;
i
<
b
.
size
();
++
i
)
for
(
unsigned
int
j
=
0
;
j
<
numEq
;
++
j
)
bTmp
[
i
][
j
]
=
b
[
i
][
j
];
int
converged
=
ls
.
solve
(
A
,
xTmp
,
bTmp
);
for
(
int
i
=
0
;
i
<
x
.
size
();
++
i
)
for
(
int
j
=
0
;
j
<
numEq
;
++
j
)
for
(
unsigned
int
i
=
0
;
i
<
x
.
size
();
++
i
)
for
(
unsigned
int
j
=
0
;
j
<
numEq
;
++
j
)
x
[
i
][
j
]
=
xTmp
[
i
][
j
];
// make sure all processes converged
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment