MMG_pSol sol;
sol = (MMG_pSol)calloc(1,sizeof(MMG_Sol));
sol->np = nbpoint; (this number is equal to mesh->np)
sol->npmax = nbpointmax; (this number is equal to mesh->npmax)
sol->offset = 6 for an anisotropic metric
sol->offset = 1 for an isotropic metric
sol->met = (double*)calloc(sol->npmax+1,sol->offset*sizeof(double));
sol->metold = (double*)calloc(sol->npmax+1,sol->offset*sizeof(double));
for (k=1; k<=mesh->np; k++) {
isol = (k-1) * sol->offset + 1;
for (i=0; i<sol->offset; i++)
sol->met[isol + i] = metrique[ pointindice_k + i ];
}