Skip to content
Snippets Groups Projects
Commit afc4f179 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix for #1746

parent 02d4949c
Branches
Tags
No related merge requests found
...@@ -997,8 +997,10 @@ public: ...@@ -997,8 +997,10 @@ public:
id += f[i + 1 + j]; id += f[i + 1 + j];
j++; j++;
} }
if(id.size() > 0) {
_fields.insert(atoi(id.c_str())); _fields.insert(atoi(id.c_str()));
} }
}
i += j + 1; i += j + 1;
} }
std::vector<std::string> expressions(1), variables(3 + _fields.size()); std::vector<std::string> expressions(1), variables(3 + _fields.size());
...@@ -1035,7 +1037,7 @@ public: ...@@ -1035,7 +1037,7 @@ public:
values[i++] = (*field)(x, y, z); values[i++] = (*field)(x, y, z);
} }
else { else {
Msg::Warning("Unknown Field %i", *it); Msg::Warning("Unknown Field %i in MathEval", *it);
values[i++] = MAX_LC; values[i++] = MAX_LC;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment