Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ag-ohlberger
dune-community
dune-xt
Commits
f73fc5f7
Commit
f73fc5f7
authored
13 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
more (pedantic) warnings fixed
parent
b60e6a5e
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
stuff/logging.hh
+5
-0
5 additions, 0 deletions
stuff/logging.hh
stuff/matrix.hh
+3
-3
3 additions, 3 deletions
stuff/matrix.hh
with
8 additions
and
3 deletions
stuff/logging.hh
+
5
−
0
View file @
f73fc5f7
...
...
@@ -42,6 +42,7 @@ public:
,
loglevel_
(
loglevel
)
,
logflags_
(
logflags
)
,
suspended_logflags_
(
logflags
)
,
is_suspended_
(
false
)
{
}
...
...
@@ -248,6 +249,7 @@ public:
protected
:
Logging
()
:
matlabLogStreamPtr
(
0
)
{
streamIDs_
.
push_back
(
LOG_ERR
);
streamIDs_
.
push_back
(
LOG_DEBUG
);
...
...
@@ -548,6 +550,9 @@ private:
MatlabLogStream
*
matlabLogStreamPtr
;
friend
Logging
&
Logger
();
// satisfy stricter warnings wrt copying
Logging
(
const
Logging
&
);
Logging
&
operator
=
(
const
Logging
&
);
};
/// global Logging instance
...
...
This diff is collapsed.
Click to expand it.
stuff/matrix.hh
+
3
−
3
View file @
f73fc5f7
...
...
@@ -283,11 +283,11 @@ public:
,
eps_
(
eps
)
,
rows_
(
local_matrix_
.
rows
())
,
cols_
(
local_matrix_
.
columns
())
,
entries_
(
rows_
*
cols_
,
FieldType
(
0.0
))
{
entries_
.
resize
(
rows_
*
cols_
,
0.0
);
}
void
add
(
const
int
row
,
const
int
col
,
const
FieldType
val
)
inline
void
add
(
const
int
row
,
const
int
col
,
const
FieldType
val
)
{
entries_
[
row
*
cols_
+
col
]
+=
val
;
}
...
...
@@ -296,7 +296,7 @@ public:
{
for
(
int
i
=
0
;
i
<
rows_
;
++
i
)
{
for
(
int
j
=
0
;
j
<
cols_
;
++
j
)
{
const
FieldType
i_j
=
entries_
[
i
*
cols_
+
j
];
const
FieldType
&
i_j
=
entries_
[
i
*
cols_
+
j
];
if
(
std
::
fabs
(
i_j
)
>
eps_
)
local_matrix_
.
add
(
i
,
j
,
i_j
);
}
...
...
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