HvD: David Binderman pointed out that ISO C does not guarantee any particular  order for the evaluation of function arguments. Hence incrementing an array  index in a function call to pass different elements to a function can cause undefined results. So now we keep the variable for the index the same but add different constants to identify the appropriate array elements and then update the index after the call.
HvD: David Binderman pointed out that ISO C does not guarantee any particular 
order for the evaluation of function arguments. Hence incrementing an array 
index in a function call to pass different elements to a function can cause
undefined results. So now we keep the variable for the index the same but add
different constants to identify the appropriate array elements and then update
the index after the call.





rangsimanketkaew/NWChem