Distortions induced by an external magnetic field in the magnetic structure of a thin layer of a uniaxial collinear antiferromagnet with rough surfaces are studied using computer simulation. It is shown that, under certain conditions, the presence of atomic steps at the layer surfaces causes the antiferromagnetic layer to break up into domains. The character and magnitude of distortions are found for an arbitrary ratio of the distance between atomic steps to the order parameter correlation length.