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
a7bba93c
Commit
a7bba93c
authored
Jul 16, 2018
by
Timo Koch
Browse files
Always catch exception by reference. Removes compiler warning.
parent
5644443c
Changes
8
Hide whitespace changes
Inline
Side-by-side
dumux/material/constraintsolvers/immiscibleflash.hh
View file @
a7bba93c
...
...
@@ -179,7 +179,7 @@ public:
deltaX
=
0
;
try
{
J
.
solve
(
deltaX
,
b
);
}
catch
(
Dune
::
FMatrixError
e
)
catch
(
Dune
::
FMatrixError
&
e
)
{
/*
std::cout << "error: " << e << "\n";
...
...
test/discretization/cellcentered/tpfa/test_tpfafvgeometry_nonconforming.cc
View file @
a7bba93c
...
...
@@ -382,7 +382,7 @@ int main (int argc, char *argv[]) try
// //////////////////////////////////
// Error handler
// /////////////////////////////////
catch
(
Dune
::
Exception
e
)
{
catch
(
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
return
1
;
...
...
test/discretization/staggered/test_staggeredfvgeometry.cc
View file @
a7bba93c
...
...
@@ -144,7 +144,7 @@ int main (int argc, char *argv[]) try
// //////////////////////////////////
// Error handler
// /////////////////////////////////
catch
(
Dune
::
Exception
e
)
{
catch
(
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
return
1
;
...
...
test/material/fluidsystems/checkfluidsystem.hh
View file @
a7bba93c
...
...
@@ -526,14 +526,14 @@ int checkFluidSystem()
try
{
val
=
FluidSystem
::
density
(
fs
,
paramCache
,
phaseIdx
);
}
catch
(
Dune
::
Exception
e
)
}
catch
(
Dune
::
Exception
&
e
)
{
collectedErrors
+=
"error: FluidSystem::density() throws exception!
\n
"
;
}
try
{
val
=
FluidSystem
::
molarDensity
(
fs
,
paramCache
,
phaseIdx
);
}
catch
(
Dune
::
Exception
e
)
}
catch
(
Dune
::
Exception
&
e
)
{
collectedErrors
+=
"error: FluidSystem::molarDensity() throws exception!
\n
"
;
}
...
...
@@ -549,7 +549,7 @@ int checkFluidSystem()
try
{
val
=
FluidSystem
::
enthalpy
(
fs
,
paramCache
,
phaseIdx
);
}
catch
(
Dune
::
NotImplemented
)
}
catch
(
Dune
::
NotImplemented
&
)
{
collectedWarnings
+=
"warning: FluidSystem::enthalpy() is not implemented
\n
"
;
}
catch
(...)
...
...
@@ -594,10 +594,10 @@ int checkFluidSystem()
try
{
val
=
FluidSystem
::
diffusionCoefficient
(
fs
,
paramCache
,
phaseIdx
,
compIdx
);
}
catch
(
Dune
::
NotImplemented
)
}
catch
(
Dune
::
NotImplemented
&
)
{
collectedWarnings
+=
"warning: FluidSystem::diffusionCoefficient() is not implemented
\n
"
;
}
catch
(
Dune
::
InvalidStateException
)
}
catch
(
Dune
::
InvalidStateException
&
)
{
collectedWarnings
+=
"warning: FluidSystem::diffusionCoefficient() gives invalid state exception
\n
"
;
}
catch
(...)
...
...
test/multidomain/facet/test_facetcouplingmapper.cc
View file @
a7bba93c
...
...
@@ -311,7 +311,7 @@ int main (int argc, char *argv[]) try
////////////////////////////////////
// Error handler
////////////////////////////////////
catch
(
Dune
::
Exception
e
)
{
catch
(
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
return
1
;
}
...
...
test/multidomain/facet/test_facetcouplingmapper_boundary.cc
View file @
a7bba93c
...
...
@@ -133,7 +133,7 @@ int main (int argc, char *argv[]) try
// //////////////////////////////////
// Error handler
// /////////////////////////////////
catch
(
Dune
::
Exception
e
)
{
catch
(
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
return
1
;
}
...
...
test/multidomain/facet/test_gridmanager.cc
View file @
a7bba93c
...
...
@@ -277,7 +277,7 @@ int main (int argc, char *argv[]) try
// //////////////////////////////////
// Error handler
// /////////////////////////////////
catch
(
Dune
::
Exception
e
)
{
catch
(
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
return
1
;
}
test/multidomain/facet/test_vertexmapper.cc
View file @
a7bba93c
...
...
@@ -170,7 +170,7 @@ int main (int argc, char *argv[]) try
// //////////////////////////////////
// Error handler
// /////////////////////////////////
catch
(
Dune
::
Exception
e
)
catch
(
Dune
::
Exception
&
e
)
{
std
::
cout
<<
e
<<
std
::
endl
;
return
1
;
...
...
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