delete to_continuous in calc_criteria.cpp