It was a setting guaranteed to raise a smile: a squinty-bright sun, an electric-blue sky, rolling green hills, a verdant community garden and a big, immaculately restored old barn. But the folks who gathered last week at the Historic Barns Park were grinning for a different reason: Completion of the first phase of a geothermal heating and cooling system that will keep the park’s iconic Cathedral Barn comfortable year-round.