Text this: Space-dependent heat source determination problem with nonlocal periodic boundary conditions