Hi,
When defining regions, 0 is determined from the origin. So in the x-direction, your sample goes from -50e-9 to +50e-9. Not 0 to +100e-9. So your region 1 is the right half of the sample, whereas your region 2 starts at the edge of the sample and goes outwards, and therefore isn't in the sample at all. Probably you want something like
defregion(1,xrange(-50e-9,0e-9))
defregion(2,xrange(0e-9,50e-9))
Best,
Josh L.