include "test.idp" cout << functionDEFINITION << "arealevelset" << endl; real t; real r = 0.5; border c1(t=0, 2.*pi){x=cos(t); y=sin(t);} int i = 100; mesh Th = buildmesh(c1(i)); fespace Uh(Th, P1); Uh phi = 1. - (x^2+y^2); t = clock(); real res = arealevelset(Th, phi[], r); t = clock() - t; cout << timeELAPSED << t << endl; test(abs(res - (pi/2)) < (1./i));