Skip to content
Snippets Groups Projects
Commit 5a46cc77 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Bug fix in GmxUtil::evaluate()

Fixed wrong declaration of the thread_local variable
parent 5b951d4e
No related branches found
No related tags found
1 merge request!103Bug fix in GmxUtil::evaluate()
......@@ -81,8 +81,8 @@ GmxInterface * GmxUtil::gmxInterface() {
}
double GmxUtil::evaluate(char const *expression) {
static string lastGoodExpression("none"); // It is helpful for debugging to get some idea of where we had got to...
string thread_local strExpression(expression);
static thread_local string lastGoodExpression("none"); // It is helpful for debugging to get some idea of where we had got to...
string strExpression(expression);
bool isWhiteSpace = true;
for(unsigned int i = 0; i < strExpression.length(); ++i){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment