global_face_coordinate_directions[GeometryInfo<3>::faces_per_cell][2]
= { { 1, 2 },
{ 1, 2 },
- { 0, 2 },
- { 0, 2 },
+ { 2, 0 },
+ { 2, 0 },
{ 0, 1 },
{ 0, 1 } };
- const unsigned int
- local_face_coordinate_directions[GeometryInfo<3>::faces_per_cell][2]
- = { { 1, 0 },
- { 1, 0 },
- { 0, 1 },
- { 0, 1 },
- { 1, 0 },
- { 1, 0 } };
-
+
// The projection is
// divided into two steps.
// In the first step we
for (unsigned int i = 0; i < 2; ++i)
for (unsigned int j = 0; j <= degree; ++j)
- tmp -= dof_values[(i + 2 * local_face_coordinate_directions[face][0]) * superdegree + j]
+ tmp -= dof_values[(i + 2) * superdegree + j]
* fe_values[vec].value (cell->get_fe ().face_to_cell_index
- ((i + 2 * local_face_coordinate_directions[face][0])
- * superdegree + j, face), q_point);
+ ((i + 2) * superdegree + j,
+ face), q_point);
const double JxW
= std::sqrt (fe_values.JxW (q_point)
for (unsigned int i = 0; i < 2; ++i)
for (unsigned int j = 0; j <= degree; ++j)
tmp
- -= dof_values[(i + 2 * local_face_coordinate_directions[face][1]) * superdegree + j]
+ -= dof_values[i * superdegree + j]
* fe_values[vec].value (cell->get_fe ().face_to_cell_index
- ((i + 2 * local_face_coordinate_directions[face][1])
- * superdegree + j, face), q_point);
+ (i * superdegree + j, face), q_point);
const double JxW
= std::sqrt (fe_values.JxW (q_point)
constraints.add_line (dof);
constraints.set_inhomogeneity (dof, computed_constraints[dof]);
}
+
+ break;
}
default:
- Assert (false, ExcNotImplemented ());
+ Assert (false, ExcNotImplemented ());
}
}
* my_degree + j
+ GeometryInfo<dim>::lines_per_cell][2]
= p2_values[i + (j + k * (my_degree + 2) + 2)
- * (my_degree + 1)];
+ * (my_degree + 1)];
values[i + (j + (2 * k + 5) * my_degree
+ GeometryInfo<dim>::lines_per_cell)
* (my_degree + 1)][0]
- = unit_point_values[i + ((j + 2) * (my_degree + 2)
- + k) * (my_degree + 1)];
+ = unit_point_values[i + ((j + 2) * (my_degree + 2) + k)
+ * (my_degree + 1)];
values[(i + 2 * (k + 4) * (my_degree + 1)
+ GeometryInfo<dim>::lines_per_cell)
* my_degree + j
+ GeometryInfo<dim>::lines_per_cell)
* my_degree + j
+ GeometryInfo<dim>::lines_per_cell]
- [o + n][l][m] = 0.0;
+ [o + k][l][m] = 0.0;
}
grad_grads[(i + 2 * k * (my_degree + 1)
>= (GeometryInfo<3>::lines_per_cell + 2 * deg)
* this->degree) &&
(shape_index
- < (GeometryInfo<3>::lines_per_cell + 5 * deg)
+ < (GeometryInfo<3>::lines_per_cell + 4 * deg)
* this->degree)) ||
((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 6 * deg)
+ >= (GeometryInfo<3>::lines_per_cell + 5 * deg)
* this->degree) &&
(shape_index
- < (GeometryInfo<3>::lines_per_cell + 7 * deg)
+ < (GeometryInfo<3>::lines_per_cell + 6 * deg)
* this->degree)) ||
((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 8 * deg)
+ >= (GeometryInfo<3>::lines_per_cell + 7 * deg)
* this->degree) &&
(shape_index
< (GeometryInfo<3>::lines_per_cell + 9 * deg)
>= (GeometryInfo<3>::lines_per_cell + 2 * deg)
* this->degree) &&
(shape_index
- < (GeometryInfo<3>::lines_per_cell + 4 * deg)
+ < (GeometryInfo<3>::lines_per_cell + 5 * deg)
* this->degree)) ||
((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 5 * deg)
- * this->degree) &&
- (shape_index
- < (GeometryInfo<3>::lines_per_cell + 6 * deg)
- * this->degree)) ||
- ((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 7 * deg)
+ >= (GeometryInfo<3>::lines_per_cell + 6 * deg)
* this->degree) &&
(shape_index
- < (GeometryInfo<3>::lines_per_cell + 8 * deg)
+ < (GeometryInfo<3>::lines_per_cell + 7 * deg)
* this->degree)) ||
((shape_index
>= (GeometryInfo<3>::lines_per_cell + 9 * deg)
< (GeometryInfo<3>::lines_per_cell + 3 * deg)
* this->degree)) ||
((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 4 * deg)
+ >= (GeometryInfo<3>::lines_per_cell + 5 * deg)
* this->degree) &&
(shape_index
- < (GeometryInfo<3>::lines_per_cell + 5 * deg)
- * this->degree)) ||
- ((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 6 * deg)
- * this->degree) &&
- (shape_index
- < (GeometryInfo<3>::lines_per_cell + 7 * deg)
+ < (GeometryInfo<3>::lines_per_cell + 6 * deg)
* this->degree)) ||
((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 8 * deg)
+ >= (GeometryInfo<3>::lines_per_cell + 7 * deg)
* this->degree) &&
(shape_index
< (GeometryInfo<3>::lines_per_cell + 10 * deg)
< (GeometryInfo<3>::lines_per_cell + 3 * deg)
* this->degree)) ||
((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 4 * deg)
+ >= (GeometryInfo<3>::lines_per_cell + 5 * deg)
* this->degree) &&
(shape_index
- < (GeometryInfo<3>::lines_per_cell + 5 * deg)
+ < (GeometryInfo<3>::lines_per_cell + 6 * deg)
* this->degree)) ||
((shape_index
- >= (GeometryInfo<3>::lines_per_cell + 6 * deg)
+ >= (GeometryInfo<3>::lines_per_cell + 7 * deg)
* this->degree) &&
(shape_index
- < (GeometryInfo<3>::lines_per_cell + 7 * deg)
+ < (GeometryInfo<3>::lines_per_cell + 8 * deg)
* this->degree)) ||
((shape_index
>= (GeometryInfo<3>::lines_per_cell + 10 * deg)