Beat the sugar and butter until pale and fluffy. Add the eggs one at a time and then mix in the hazelnuts and flour. Set oven to 160oc. Spoon half the frangipane into the pastry case and smooth over.