3 #include "../../include/matrixFreePDE.h" 4 #include "../../include/variableContainer.h" 7 template <
int dim,
int degree>
10 computing_timer.enter_section(
"matrixFreePDE: computeRHS");
13 for(
unsigned int fieldIndex=0; fieldIndex<fields.size(); fieldIndex++){
15 (*residualSet[fieldIndex])=0.0;
23 computing_timer.exit_section(
"matrixFreePDE: computeRHS");
26 template <
int dim,
int degree>
28 std::vector<vectorType*> &dst,
29 const std::vector<vectorType*> &src,
30 const std::pair<unsigned int,unsigned int> &cell_range)
const{
35 for (
unsigned int cell=cell_range.first; cell<cell_range.second; ++cell){
43 for (
unsigned int q=0; q<num_q_points; ++q){
46 dealii::Point<dim, dealii::VectorizedArray<double> > q_point_loc = variable_list.
get_q_point_location();
49 explicitEquationRHS(variable_list,q_point_loc);
57 template <
int dim,
int degree>
60 computing_timer.enter_section(
"matrixFreePDE: computeRHS");
63 for(
unsigned int fieldIndex=0; fieldIndex<fields.size(); fieldIndex++){
65 (*residualSet[fieldIndex])=0.0;
73 computing_timer.exit_section(
"matrixFreePDE: computeRHS");
76 template <
int dim,
int degree>
78 std::vector<vectorType*> &dst,
79 const std::vector<vectorType*> &src,
80 const std::pair<unsigned int,unsigned int> &cell_range)
const{
85 for (
unsigned int cell=cell_range.first; cell<cell_range.second; ++cell){
93 for (
unsigned int q=0; q<num_q_points; ++q){
96 dealii::Point<dim, dealii::VectorizedArray<double> > q_point_loc = variable_list.
get_q_point_location();
99 nonExplicitEquationRHS(variable_list,q_point_loc);
106 #include "../../include/matrixFreePDE_template_instantiations.h" void integrate_and_distribute(std::vector< vectorType *> &dst)
void getExplicitRHS(const MatrixFree< dim, double > &data, std::vector< vectorType *> &dst, const std::vector< vectorType *> &src, const std::pair< unsigned int, unsigned int > &cell_range) const
void reinit_and_eval(const std::vector< vectorType *> &src, unsigned int cell)
unsigned int get_num_q_points()
void getNonexplicitRHS(const MatrixFree< dim, double > &data, std::vector< vectorType *> &dst, const std::vector< vectorType *> &src, const std::pair< unsigned int, unsigned int > &cell_range) const
void computeExplicitRHS()
dealii::Point< dim, T > get_q_point_location()
void computeNonexplicitRHS()