Updated adjoints_ex1 to use the new FEMContext API.