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 { ...@@ -70,16 +70,14 @@ class SampleFunctional {
A_.mv(x, tmp3); A_.mv(x, tmp3);
double const rest_b = (b_ - tmp3) * descDir; 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; typedef MyNonlinearity<dimension, SampleFunction> MyNonlinearityType;
MyNonlinearityType phi; MyNonlinearityType phi;
typedef DirectionalConvexFunction<MyNonlinearityType>
DirectionalConvexFunction < MyDirectionalConvexFunctionType;
Nonlinearity< MyDirectionalConvexFunctionType rest(rest_A, rest_b, phi, xx, dd);
Dune::FieldVector<double,
dimension>, // MyNonlinearityType::SmallVector,
Dune::FieldMatrix<double, dimension,
dimension> // MyNonlinearityType::SmallMatrix> >
> rest(rest_A, rest_b, phi, x, descDir);
if (descDir == SmallVector(0.0)) if (descDir == SmallVector(0.0))
return SmallVector(0.0); return SmallVector(0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment