The pre-processor for ORCHIDEE's routing scheme