fixed: check pointer before dereferencing
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@788 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
parent
940d949764
commit
14de64c896
@ -923,7 +923,7 @@ bool SIMbase::writeGlvS (const Vector& psol,
|
|||||||
bool haveAsol = false;
|
bool haveAsol = false;
|
||||||
bool scalarEq = myModel.empty() ? false : myModel.front()->getNoFields() == 1;
|
bool scalarEq = myModel.empty() ? false : myModel.front()->getNoFields() == 1;
|
||||||
if (scalarEq) {
|
if (scalarEq) {
|
||||||
if (this->getAnaSol()->hasScalarSol())
|
if (getAnaSol() && this->getAnaSol()->hasScalarSol())
|
||||||
haveAsol = true;
|
haveAsol = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user