In file applications/allen_cahn_explicit/equations.cc
ScalarValue f_grad = 0.0;
for (unsigned int i = 0; i < dim; i++)
{
for (unsigned int j = 0; j < dim; j++)
{
f_grad += 0.5 * KnV * nx[i] * nx[j];
}
}
Note that this is not the dot product. The correct way should be:
ScalarValue f_grad = 0.0;
for (unsigned int i = 0; i < dim; i++)
{
f_grad += nx[i] * nx[i];
}
f_grad *= 0.5 * KnV;
This also affects other applications.
In file applications/allen_cahn_explicit/equations.cc
Note that this is not the dot product. The correct way should be:
This also affects other applications.