We present the design for, and implementation of, a flexible and robust parallel modular finite element (FEM) framework called ModFEM. The design is based on reusable modules which use narrow and well-defined interfaces to cooperate. At the top of the architecture, there are problem-dependent modules. Problem-dependent modules can be additionally grouped together by “super-modules”. The structu...