1: \begin{abstract}
2: The finite-element method is a preferred numerical method when electromagnetic fields at high accuracy
3: are to be computed in nano-optics design.
4: Here, we demonstrate a finite-element method using {\it hp}-adaptivity on tetrahedral meshes for
5: computation of electromagnetic fields in a device with rough textures.
6: The method allows for efficient computations on meshes with strong variations in element sizes.
7: This enables to use precise geometry resolution of the rough textures.
8: Convergence to highly accurate results is observed.
9:
10: \end{abstract}
11: