Camellia: a software framework for discontinuous Petrov-Galerkin methods. The discontinuous Petrov–Galerkin (DPG) methodology of Demkowicz and Gopalakrishnan minimizes the solution residual in a user-determinable energy norm and offers a built-in mechanism for evaluating error in the energy norm, among other desirable features. However, the methodology also brings with it some additional complexity for researchers who wish to experiment with DPG in their computations. In this paper, we introduce Camellia , a software framework whose central design goal is to enable developers to create efficient hphp-adaptive DPG solvers with minimal effort