This paper presents the application of LiSS, the 2D multigrid solver for parabolic and elliptic differential equations developed by the GMD, to the simulation of diffusion processes in complex nonplanar structures. A domain-splitting method is presented. The behaviour of different multigrid cycles applied to rectangular and curvilinear grids of a trench structure is investigated.