Fixed lacking pre-allocation for active boundary conditions.