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

VecAtQP_SOT with NULL-Pointer fct

parent 7a263673
......@@ -179,7 +179,7 @@ namespace AMDiS {
VecAtQP_SOT::VecAtQP_SOT(DOFVectorBase<double> *dv,
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);
......@@ -1294,7 +1294,7 @@ namespace AMDiS {
VecAtQP_IJ_SOT::VecAtQP_IJ_SOT(DOFVectorBase<double> *dv,
AbstractFunction<double, double> *af,
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);
......
Markdown is supported
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