I am using the following statements in a loop. The last statement is supposed to add them together but all three lines yield the same values. What seems to be the problem here. These are the statements:
What this code does is resultfx [xx1] += xforce [xx1][contactpnt1]; (and of course also set fxsum and x). What it is supposed to do I'm not sure..
Were you trying to add all xforce[xx1][0 to something] ?
When I print all 3 statements I get the same result; all 3 are equal, so the summation (3rd statment) is not working for some reason. I can't figure out why. None of them is 0, though.