PRISMS-PF  v2.1
test_outputResults.h
Go to the documentation of this file.
1 // Unit test(s) for the method "outputResults"
2 template <int dim, int degree>
3 class testOutputResults: public MatrixFreePDE<dim,degree>
4 {
5  public:
6  testOutputResults(userInputParameters<dim> _userInputs): MatrixFreePDE<dim,degree>(_userInputs){};
7 
8  private:
9  void setBCs(){};
10 
11  private:
12  //RHS implementation for explicit solve
13  void getRHS(const MatrixFree<dim,double> &data,
14  std::vector<vectorType*> &dst,
15  const std::vector<vectorType*> &src,
16  const std::pair<unsigned int,unsigned int> &cell_range) const{};
17 
18  void residualRHS(variableContainer<dim,degree,dealii::VectorizedArray<double> > & variable_list,
19  dealii::Point<dim, dealii::VectorizedArray<double> > q_point_loc) const {};
20 
21  void residualLHS(variableContainer<dim,degree,dealii::VectorizedArray<double> > & variable_list,
22  dealii::Point<dim, dealii::VectorizedArray<double> > q_point_loc) const {};
23 
24  void energyDensity(const variableContainer<dim,degree,dealii::VectorizedArray<double> > & variable_list, const dealii::VectorizedArray<double> & JxW_value,
25  dealii::Point<dim, dealii::VectorizedArray<double> > q_point_loc) {};
26 };
27 
28 template <int dim,typename T>
29  bool unitTest<dim,T>::test_outputResults(int argc, char** argv, userInputParameters<dim> userInputs){
30  bool pass = false;
31  std::cout << "\nTesting 'outputResults' in " << dim << " dimension(s)...'" << std::endl;
32 
33  //create test problem class object
34  testOutputResults<dim,1> test(userInputs);
35  pass=true;
36 
37  char buffer[100];
38  sprintf (buffer, "Test result for 'outputResults' in %u dimension(s): %u\n", dim, pass);
39  std::cout << buffer;
40 
41  return pass;
42 }
void energyDensity(const variableContainer< dim, degree, dealii::VectorizedArray< double > > &variable_list, const dealii::VectorizedArray< double > &JxW_value, dealii::Point< dim, dealii::VectorizedArray< double > > q_point_loc)
void residualLHS(variableContainer< dim, degree, dealii::VectorizedArray< double > > &variable_list, dealii::Point< dim, dealii::VectorizedArray< double > > q_point_loc) const
bool test_outputResults(int argc, char **argv, userInputParameters< dim > userInputs)
testOutputResults(userInputParameters< dim > _userInputs)
void residualRHS(variableContainer< dim, degree, dealii::VectorizedArray< double > > &variable_list, dealii::Point< dim, dealii::VectorizedArray< double > > q_point_loc) const
void getRHS(const MatrixFree< dim, double > &data, std::vector< vectorType *> &dst, const std::vector< vectorType *> &src, const std::pair< unsigned int, unsigned int > &cell_range) const