I am fixing a bug that was introduced in 6b0348e, where the logicalflow was distorted within the trapezoidal rule code.This change does not affect standard CLUBB, where the trapezoidalrule is not used by default. However, it is important for CAM-CLUBB.