Convection and stability in a rotating porous layer with alternating direction of the centrifugal body force