Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
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
Martin Kurečka
Plumed AlphaFold
Commits
3ce764a9
There was an error fetching the commit references. Please try again later.
Commit
3ce764a9
authored
5 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for cppcheck 1.88
parent
9163dd22
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
src/tools/Stopwatch.h
+9
-1
9 additions, 1 deletion
src/tools/Stopwatch.h
src/tools/Tensor.h
+1
-1
1 addition, 1 deletion
src/tools/Tensor.h
with
10 additions
and
2 deletions
src/tools/Stopwatch.h
+
9
−
1
View file @
3ce764a9
...
...
@@ -338,7 +338,15 @@ inline
Stopwatch
::
Handler
&
Stopwatch
::
Handler
::
operator
=
(
Handler
&&
handler
)
noexcept
{
if
(
this
!=&
handler
)
{
if
(
watch
)
{
if
(
stop
)
watch
->
stop
();
if
(
stop
)
{
try
{
watch
->
stop
();
}
catch
(...)
{
// this is to avoid problems with cppcheck, given than this method is declared as
// noexcept and stop might throw in case of an internal bug
std
::
terminate
();
}
}
else
watch
->
pause
();
}
// cppcheck complains about this:
...
...
This diff is collapsed.
Click to expand it.
src/tools/Tensor.h
+
1
−
1
View file @
3ce764a9
...
...
@@ -545,7 +545,7 @@ void diagMatSym(const TensorGeneric<n,n>&mat,VectorGeneric<m>&evals,TensorGeneri
int
lwork
=
work
.
size
();
TensorGenericAux
::
local_dsyevr
(
"V"
,
(
n
==
m
?
"A"
:
"I"
),
"U"
,
&
nn
,
const_cast
<
double
*>
(
&
mat
[
0
][
0
]),
&
nn
,
&
vl
,
&
vu
,
&
one
,
&
mm
,
&
abstol
,
&
mout
,
&
evals
[
0
],
&
evec
[
0
][
0
],
&
nn
,
&
isup
[
0
]
,
&
work
[
0
]
,
&
lwork
,
&
iwork
[
0
]
,
&
liwork
,
&
info
);
isup
.
data
()
,
work
.
data
()
,
&
lwork
,
iwork
.
data
()
,
&
liwork
,
&
info
);
if
(
info
!=
0
)
plumed_error
()
<<
"Error diagonalizing matrix
\n
"
<<
"Matrix:
\n
"
<<
mat
<<
"
\n
"
<<
"Info: "
<<
info
<<
"
\n
"
;
...
...
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