Advection heat by water flow in recharge and discharge areas, semiconfining layers and fractures