Add the TBC condition by changing the elements datatype of dVec from int to double.