Fixed optional renaming of the variables.

time-shift
Stéphane Adjemian (Odysseus) 2020-01-30 11:44:54 +01:00
parent d24ad5ac99
commit 95acf31a69
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ for i=1:length(eqtags)
[variable_has_to_be_renamed, id] = ismember(eqnum, [rename{:,1}]);
if variable_has_to_be_renamed
tmp = strsplit(rename{id,2}, '->');
LHS = exactstrrep(LHS, tmp{1}, tmp{2});
lhs_expression = exactstrrep(lhs_expression, tmp{1}, tmp{2});
RHS = exactstrrep(RHS, tmp{1}, tmp{2});
rep = strcmp(tmp{1}, enames);
if any(rep)