Closed cod3monk closed 6 years ago
Since all scalars and arrays are initialized with the same value (0.23), the following code will run faster than expected:
(U_op - y[j]) / R
since U_op - y[j] will be zero and the division will take less cycles to complete.
U_op - y[j]
A solution would be, to make the initial values random or have the user define them.
Since all scalars and arrays are initialized with the same value (0.23), the following code will run faster than expected:
since
U_op - y[j]
will be zero and the division will take less cycles to complete.A solution would be, to make the initial values random or have the user define them.