Micromagnetic computations in thin films