FEM 2D simulator with aggregated PBC and typedef double modified.