Skip to content
Snippets Groups Projects
Commit b812fe8f authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

SmallVector should be BlockVector<SmallVector>

parent 7949bec1
No related branches found
No related tags found
No related merge requests found
......@@ -70,16 +70,14 @@ class SampleFunctional {
A_.mv(x, tmp3);
double const rest_b = (b_ - tmp3) * descDir;
Dune::BlockVector<SmallVector> xx; // FIXME: we actually want x here
Dune::BlockVector<SmallVector> dd; // FIXME: we actually want descDir here
typedef MyNonlinearity<dimension, SampleFunction> MyNonlinearityType;
MyNonlinearityType phi;
DirectionalConvexFunction <
Nonlinearity<
Dune::FieldVector<double,
dimension>, // MyNonlinearityType::SmallVector,
Dune::FieldMatrix<double, dimension,
dimension> // MyNonlinearityType::SmallMatrix> >
> rest(rest_A, rest_b, phi, x, descDir);
typedef DirectionalConvexFunction<MyNonlinearityType>
MyDirectionalConvexFunctionType;
MyDirectionalConvexFunctionType rest(rest_A, rest_b, phi, xx, dd);
if (descDir == SmallVector(0.0))
return SmallVector(0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment