I am using finite difference software to solve across 1D line from x=0 to x=1 (left Domain), and x=1 to x=2 (middle/central domain) and x=2 to x=3 (right domain). The only difference between domains is that the central domain posses a source term.
I have a Left hand domain where \begin{equation} u_t(x,t) - u_{xx}(x,t) = 0 \text{ where $x\in\mathbb{R}$ and $t>0$} \end{equation}
And then a domain in the middle \begin{equation} u_t(x,t) - u_{xx}(x,t) = S \text{ where $x\in\mathbb{R}$ and $t>0$ and $S>0$} \end{equation}
And then a third right hand domain:
\begin{equation} u_t(x,t) - u_{xx}(x,t) = 0 \text{ where $x\in\mathbb{R}$ and $t>0$} \end{equation}
Boundary conditions are required at the start and end of the 1D line.
Are boundary conditions required between the domains, or can I just change the value of S to be nonzero in the middle and have no boundary conditions surrounding the central subdomain? If there are no central subdomain boundary conditions is the solutions approximately correct? Does the same principle apply to 2D and 3D pdes?