mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Put spdiag() into an anonymous namespace.
This avoids warnings (GCC 4.6) about missing prior function declaration.
This commit is contained in:
parent
92592672fe
commit
a174d4eb51
@ -248,6 +248,7 @@ subset(const Eigen::Array<Scalar, Eigen::Dynamic, 1>& x,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
namespace {
|
||||||
AutoDiff::ForwardBlock<double>::M
|
AutoDiff::ForwardBlock<double>::M
|
||||||
spdiag(const AutoDiff::ForwardBlock<double>::V& d)
|
spdiag(const AutoDiff::ForwardBlock<double>::V& d)
|
||||||
{
|
{
|
||||||
@ -262,5 +263,6 @@ spdiag(const AutoDiff::ForwardBlock<double>::V& d)
|
|||||||
|
|
||||||
return mat;
|
return mat;
|
||||||
}
|
}
|
||||||
|
} // Anonymous namespace
|
||||||
|
|
||||||
#endif // OPM_AUTODIFFHELPERS_HEADER_INCLUDED
|
#endif // OPM_AUTODIFFHELPERS_HEADER_INCLUDED
|
||||||
|
Loading…
Reference in New Issue
Block a user