The Dean Orphan Hospital was built above Dean Village in Edinburgh in 1833. A rather imposing building it was converted into the Dean Gallery in 1999. part of the Gallery of Modern Art. The late father of my ex was an inmate there when the family fell on hard times. He recalled the daily march down Orchard Brae to what is now Flora Stevensons Primary School, but which was a secondary school in his time. The area of Craigleith where I live is very close to it, so this is possibly what you are referring to ?
Matt