Spatial fragmentation of a Bose-Einstein condensate in a double