8 #ifndef INCLUDE_INITIALCONDITIONS_H_ 9 #define INCLUDE_INITIALCONDITIONS_H_ 14 template <
int dim,
int degree>
22 std::srand(dealii::Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)+1);
25 double value (
const dealii::Point<dim> &p,
const unsigned int component=0)
const {
26 double scalar_IC = 0.0;
27 dealii::Vector<double> vector_IC(dim);
37 template <
int dim,
int degree>
45 std::srand(dealii::Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)+1);
49 void vector_value (
const dealii::Point<dim> &p,dealii::Vector<double> &vector_IC)
const {
50 double scalar_IC = 0.0;
51 vector_IC.reinit(dim);
InitialConditionVector(const unsigned int _index, const userInputParameters< dim > _userInputs, MatrixFreePDE< dim, degree > *_matrix_free_pde)
double value(const dealii::Point< dim > &p, const unsigned int component=0) const
MatrixFreePDE< dim, degree > * matrix_free_pde
InitialCondition(const unsigned int _index, const userInputParameters< dim > _userInputs, MatrixFreePDE< dim, degree > *_matrix_free_pde)
dealii::Vector< double > values
void vector_value(const dealii::Point< dim > &p, dealii::Vector< double > &vector_IC) const
MatrixFreePDE< dim, degree > * matrix_free_pde
dealii::Vector< double > values
const userInputParameters< dim > userInputs
const userInputParameters< dim > userInputs