Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing whitespace in BackendDump #9732

Merged
merged 1 commit into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/BackEnd/BackendDump.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ algorithm
equation
s1 = ExpressionDump.printExpStr(iter) + " in " + ExpressionDump.printExpStr(start) + " : " + ExpressionDump.printExpStr(stop);
s2 = equationString(eqn);
res = stringAppendList({"for ", s1, " loop \n ", s2, "; end for; "});
res = stringAppendList({"for ", s1, " loop\n ", s2, "; end for; "});
then
res;
end match;
Expand Down
12 changes: 6 additions & 6 deletions testsuite/openmodelica/cppruntime/testVectorizedPowerSystem.mos
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ val(fixedVoltageSource1.p[1], 1.0);
// 9/17 (1): busBar1.v = busBar1.terminal_p.v [dynamic |0|0|0|0|]
// 10/18 (1): busBar1.i = busBar1.terminal_p.i [dynamic |0|0|0|0|]
// 11/19 (1): busBar1.p = {busBar1.v * busBar1.i} [dynamic |0|0|0|0|]
// 12/20 (1): for i in 1 : 1 loop
// 12/20 (1): for i in 1 : 1 loop
// busBar1.terminal_p.i[i] = -sum(busBar1.terminal_n[:].i[i]); end for; [dynamic |0|0|0|0|]
// 13/21 (3): for i in 1 : 3 loop
// 13/21 (3): for i in 1 : 3 loop
// busBar1.terminal_n[i].v = busBar1.terminal_p.v; end for; [dynamic |0|0|0|0|]
//
//
Expand Down Expand Up @@ -286,7 +286,7 @@ val(fixedVoltageSource1.p[1], 1.0);
//
// Simple Shared Equations (1, 1)
// ========================================
// 1/1 (0): for i in 1 : 3 loop
// 1/1 (0): for i in 1 : 3 loop
// algorithm
// branch({}, {});
// ; end for; [dynamic |0|0|0|0|]
Expand Down Expand Up @@ -429,9 +429,9 @@ val(fixedVoltageSource1.p[1], 1.0);
// 9/17 (1): busBar1.v = busBar1.terminal_p.v [dynamic |0|0|0|0|]
// 10/18 (1): busBar1.i = busBar1.terminal_p.i [dynamic |0|0|0|0|]
// 11/19 (1): busBar1.p = {busBar1.v * busBar1.i} [dynamic |0|0|0|0|]
// 12/20 (1): for i in 1 : 1 loop
// 12/20 (1): for i in 1 : 1 loop
// busBar1.terminal_p.i[i] = -sum(busBar1.terminal_n[:].i[i]); end for; [dynamic |0|0|0|0|]
// 13/21 (3): for i in 1 : 3 loop
// 13/21 (3): for i in 1 : 3 loop
// busBar1.terminal_n[i].v = busBar1.terminal_p.v; end for; [dynamic |0|0|0|0|]
//
//
Expand Down Expand Up @@ -662,7 +662,7 @@ val(fixedVoltageSource1.p[1], 1.0);
//
// Simple Shared Equations (1, 1)
// ========================================
// 1/1 (0): for i in 1 : 3 loop
// 1/1 (0): for i in 1 : 3 loop
// algorithm
// branch({}, {});
// ; end for; [dynamic |0|0|0|0|]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ val(grid.P_grid, 0.0);
// 2/1001 (1000): plant.term.i + grid.terms.i = 0.0 [dynamic |0|0|0|0|]
// 3/2001 (1000): for $i1 in 1 : 1000 loop
// plant[$i1].term.v * plant[$i1].term.i = if plant[$i1].on then plant[$i1].eta * plant[$i1].P_solar else 0.0; end for; [dynamic |0|0|0|0|]
// 4/3001 (1000): for i in 1 : 1000 loop
// 4/3001 (1000): for i in 1 : 1000 loop
// grid.terms[i].v = grid.V; end for; [dynamic |0|0|0|0|]
// 5/4001 (1): 0.0 = grid.P_grid + grid.terms.v * grid.terms.i [dynamic |0|0|0|0|]
// 6/4002 (1000): plant.P_solar = 100.0:100.0:100000.0 [binding |0|0|0|0|]
Expand Down Expand Up @@ -103,7 +103,7 @@ val(grid.P_grid, 0.0);
// 2/1001 (1000): plant.term.i + grid.terms.i = 0.0 [dynamic |0|0|0|0|]
// 3/2001 (1000): for $i1 in 1 : 1000 loop
// plant[$i1].term.v * plant[$i1].term.i = if plant[$i1].on then plant[$i1].eta * plant[$i1].P_solar else 0.0; end for; [dynamic |0|0|0|0|]
// 4/3001 (1000): for i in 1 : 1000 loop
// 4/3001 (1000): for i in 1 : 1000 loop
// grid.terms[i].v = grid.V; end for; [dynamic |0|0|0|0|]
// 5/4001 (1): grid.P_grid = -grid.terms.v * grid.terms.i [dynamic |0|0|0|0|]
// 6/4002 (1000): plant.P_solar = 100.0:100.0:100000.0 [binding |0|0|0|0|]
Expand Down