On a compact manifold with boundary, the map consisting of the scalar curvature in the interior and the mean curvature on the boundary is a local surjection at generic metrics. Moreover, this result may be localized to compact subdomains in an arbitrary Riemannian manifold with boundary. The non-generic case (also called non-generic domains) corresponds to static manifolds with boundary. We discuss their geometric properties, which also work as the necessary conditions of non-generic metrics. In space forms and the Schwarzschild manifold, we classify simple non-generic domains (with only one boundary component) and show their connection with rigidity theorems and the Schwarzschild photon sphere.
Hongyi Sheng (Thu,) studied this question.
Synapse has enriched 4 closely related papers on similar clinical questions. Consider them for comparative context: