How is the submodel implemented?

See Two subdomains with different equations.