PRISMS-PF  v2.1
matrixFreePDE.cc
Go to the documentation of this file.
1 //constructor and destructor for matrixFreePDE class
2 
3 #include "../../include/matrixFreePDE.h"
4 
5 
6  //constructor
7 template <int dim, int degree>
9  :
10  Subscriptor(),
11  pcout (std::cout, Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)==0),
12  userInputs(_userInputs),
13  triangulation (MPI_COMM_WORLD),
14  currentFieldIndex(0),
15  isTimeDependentBVP(false),
16  isEllipticBVP(false),
17  hasExplicitEquation(false),
18  hasNonExplicitEquation(false),
19  parabolicFieldIndex(0),
20  ellipticFieldIndex(0),
21  currentTime(0.0),
22  currentIncrement(0),
23  currentOutput(0),
24  currentCheckpoint(0),
25  current_grain_reassignment(0),
26  computing_timer (pcout, TimerOutput::summary, TimerOutput::wall_times),
27  first_integrated_var_output_complete(false)
28  {
29  }
30 
31  //destructor
32  template <int dim, int degree>
34  {
35  matrixFreeObject.clear();
36 
37  // Delete the pointers contained in several member variable vectors
38  // The size of each of these must be checked individually in case an exception is thrown
39  // as they are being initialized.
40  for(unsigned int iter=0; iter<locally_relevant_dofsSet.size(); iter++){
41  delete locally_relevant_dofsSet[iter];
42  }
43  for(unsigned int iter=0; iter<constraintsDirichletSet.size(); iter++){
44  delete constraintsDirichletSet[iter];
45  }
46  for(unsigned int iter=0; iter<soltransSet.size(); iter++){
47  delete soltransSet[iter];
48  }
49  for(unsigned int iter=0; iter<dofHandlersSet.size(); iter++){
50  delete dofHandlersSet[iter];
51  }
52  for(unsigned int iter=0; iter<FESet.size(); iter++){
53  delete FESet[iter];
54  }
55  for(unsigned int iter=0; iter<solutionSet.size(); iter++){
56  delete solutionSet[iter];
57  }
58  for(unsigned int iter=0; iter<residualSet.size(); iter++){
59  delete residualSet[iter];
60  }
61 
62  }
63 
64 
65 #include "../../include/matrixFreePDE_template_instantiations.h"
MatrixFreePDE(userInputParameters< dim >)
Definition: matrixFreePDE.cc:8