I'm solving the Poisson equation over subdomains with interior boundaries. I want to set up Neumann bcs on the interior boundaries. I followed the example in demo 22 "Poisson equation with multiple subdomains", replacing ds with dS:
boundaries = FacetFunction("size_t", mesh)
...
dSs = dS[boundaries]
...
L = f*v*dx + g*v*dSs(0)
...
b = assemble(L)
The last line gives the error message "Form argument must be restricted". How do I get this to work? (I've had no problems setting up Dirchlet bcs on internal boundaries.)