fe.system_to_component_index(j).first))
cell_matrix(i,j) +=
(u * v * weight * coefficient_values[point]);
- local_rhs(i) += v * rhs_values[point] * weight;
}
+ local_rhs(i) += v * rhs_values[point] * weight;
}
}
}
cell_matrix(i,j) +=
(u * v * weight *
coefficient_vector_values[point](component_i));
- local_rhs(i) += v * rhs_values[point] * weight;
}
+ local_rhs(i) += v * rhs_values[point] * weight;
}
}
}
(fe.system_to_component_index(i).first ==
fe.system_to_component_index(j).first))
cell_matrix(i,j) += (u * v * weight);
- local_rhs(i) += v * rhs_values[point] * weight;
}
+ local_rhs(i) += v * rhs_values[point] * weight;
}
}
cell_matrix(i,j)
+= (u * v * weight * coefficient_values[point]);
}
-
- cell_vector(i) += v *
- rhs_values_system[point](
- fe.system_to_component_index(i).first) * weight;
}
+ cell_vector(i) += v *
+ rhs_values_system[point](
+ fe.system_to_component_index(i).first) * weight;
}
}
}
cell_matrix(i,j) +=
(u * v * weight * coefficient_vector_values[point](component_i));
}
-
- cell_vector(i) += v * rhs_values_system[point](component_i) * weight;
- }
+ }
+ cell_vector(i) += v * rhs_values_system[point](component_i) * weight;
}
}
}
{
cell_matrix(i,j) += (u * v * weight);
}
-
- cell_vector(i) += v *
- rhs_values_system[point](
- fe.system_to_component_index(i).first) *
- weight;
}
+ cell_vector(i) += v *
+ rhs_values_system[point](
+ fe.system_to_component_index(i).first) *
+ weight;
}
}
}
{
const double u = fe_values.shape_value(j,point);
cell_matrix(i,j) += (u * v * weight * coefficient_values[point]);
- cell_vector(i) += v * rhs_values_scalar[point] *weight;
}
+ cell_vector(i) += v * rhs_values_scalar[point] *weight;
}
}
}
{
const double u = fe_values.shape_value(j,point);
cell_matrix(i,j) += (u * v * weight);
- cell_vector(i) += v * rhs_values_scalar[point] * weight;
}
+ cell_vector(i) += v * rhs_values_scalar[point] * weight;
}
}
}
};
- template <int dim>
+template <int dim>
void MatrixCreator::create_boundary_mass_matrix (const DoFHandler<dim> &dof,
const Quadrature<dim-1> &q,
SparseMatrix<double> &matrix,