Error while compiling when using gradientOf for expressions with solution variable
For the following code doesn't compile with an error: no matching function for call to ‘get<0>(std::integer_sequence<long unsigned int, 0, 1>&)’
auto phi = prob.solution(0);
auto opMob = gradientOf(36 * pow<2>(phi) * pow<2>(1 - phi));
It works for
auto opMob = gradientOf(phi);
but gives the same error for
auto opMob = gradientOf(36 * phi);
and
auto opMob = gradientOf(pow<2>(phi));