Dealing with pure periodic/pure infinite elements

see _check_partition_sizes()