Commit 46cf564b authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

VecAtQP_SOT with NULL-Pointer fct

parent 7a263673
...@@ -179,7 +179,7 @@ namespace AMDiS { ...@@ -179,7 +179,7 @@ namespace AMDiS {
VecAtQP_SOT::VecAtQP_SOT(DOFVectorBase<double> *dv, VecAtQP_SOT::VecAtQP_SOT(DOFVectorBase<double> *dv,
AbstractFunction<double, double> *af) AbstractFunction<double, double> *af)
: SecondOrderTerm(af->getDegree()), vec(dv), f(af) : SecondOrderTerm(af ? af->getDegree() : dv->getFeSpace()->getBasisFcts()->getDegree()), vec(dv), f(af)
{ {
setSymmetric(true); setSymmetric(true);
...@@ -1294,7 +1294,7 @@ namespace AMDiS { ...@@ -1294,7 +1294,7 @@ namespace AMDiS {
VecAtQP_IJ_SOT::VecAtQP_IJ_SOT(DOFVectorBase<double> *dv, VecAtQP_IJ_SOT::VecAtQP_IJ_SOT(DOFVectorBase<double> *dv,
AbstractFunction<double, double> *af, AbstractFunction<double, double> *af,
int x_i, int x_j) int x_i, int x_j)
: SecondOrderTerm(af->getDegree()), vec(dv), f(af), xi(x_i), xj(x_j) : SecondOrderTerm(af ? af->getDegree() : dv->getFeSpace()->getBasisFcts()->getDegree()), vec(dv), f(af), xi(x_i), xj(x_j)
{ {
setSymmetric(xi == xj); setSymmetric(xi == xj);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment