mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add spdiag() prototype to silence GCC 4.6 warning.
GCC's flag -Wmissing-declarations requires that a valid prototype exist for non-template (global) functions prior to the corresponding function definition.
This commit is contained in:
@@ -286,6 +286,9 @@ superset(const Eigen::Array<Scalar, Eigen::Dynamic, 1>& x,
|
|||||||
|
|
||||||
/// Construct square sparse matrix with the
|
/// Construct square sparse matrix with the
|
||||||
/// elements of d on the diagonal.
|
/// elements of d on the diagonal.
|
||||||
|
AutoDiff::ForwardBlock<double>::M
|
||||||
|
spdiag(const AutoDiff::ForwardBlock<double>::V& d);
|
||||||
|
|
||||||
AutoDiff::ForwardBlock<double>::M
|
AutoDiff::ForwardBlock<double>::M
|
||||||
spdiag(const AutoDiff::ForwardBlock<double>::V& d)
|
spdiag(const AutoDiff::ForwardBlock<double>::V& d)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user