Using subdomains in diffusion equation

You need to use boolean fragments to resolve the interface between the domains, see for instance:

or

or
https://jsdokken.com/converted_files/tutorial_pygmsh.html