SW propagation code