Skip to content
Snippets Groups Projects
Commit c4f443f3 authored by Tuomas Karna's avatar Tuomas Karna
Browse files

fix functionReplace getSolution() bug

parent c1c92a1b
No related branches found
No related tags found
No related merge requests found
...@@ -237,9 +237,9 @@ const function * dataCacheMap::_translate(const function *f) const ...@@ -237,9 +237,9 @@ const function * dataCacheMap::_translate(const function *f) const
if (f == NULL) { if (f == NULL) {
dataCacheMap *parent = _parent; dataCacheMap *parent = _parent;
while (parent) { while (parent) {
f = _parent->_functionSolution; f = parent->_functionSolution;
if (f) break; if (f) break;
parent = _parent->_parent; parent = parent->_parent;
} }
if (f == NULL) if (f == NULL)
Msg::Error ("solution function has not been set"); Msg::Error ("solution function has not been set");
...@@ -249,9 +249,9 @@ const function * dataCacheMap::_translate(const function *f) const ...@@ -249,9 +249,9 @@ const function * dataCacheMap::_translate(const function *f) const
if (f == NULL) { if (f == NULL) {
dataCacheMap *parent = _parent; dataCacheMap *parent = _parent;
while (parent) { while (parent) {
f = _parent->_functionSolutionGradient; f = parent->_functionSolutionGradient;
if (f) break; if (f) break;
parent = _parent->_parent; parent = parent->_parent;
} }
if (f == NULL) if (f == NULL)
Msg::Error ("solution function gradient has not been set"); Msg::Error ("solution function gradient has not been set");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment