Corrected the mistake in the initialisation of the routing. aggregate_p was called in a is_root_prc region which lead to MPI error on the bcast.