IF ( doPackOld ) THEN
LOGICAL doPackOld
doPackOld = (.NOT.ctrlSmoothCorrel2D).AND.(.NOT.ctrlUseGen)
IF ( .NOT.doPackOld ) THEN
doPackOld = (.NOT.ctrlSmoothCorrel3D).AND.(.NOT.ctrlUseGen)