1 // GetDP - Copyright (C) 1997-2021 P. Dular and C. Geuzaine, University of Liege 2 // 3 // See the LICENSE.txt file for license information. Please report all 4 // issues on https://gitlab.onelab.info/getdp/getdp/issues. 5 6 #ifndef ADAPT_H 7 #define ADAPT_H 8 9 #define ADAPT_P1 1 10 #define ADAPT_P2 2 11 #define ADAPT_H1 3 12 #define ADAPT_H2 4 13 14 double Adapt (int N, /* Number of elements */ 15 int method, /* ADAPT_H1, ADAPT_H2, ADAPT_P1 or ADAPT_P2 */ 16 int dim, /* 2 or 3 */ 17 double *err, /* elementary errors */ 18 double *h, /* elementary mesh sizes */ 19 double *p, /* elementary exponents */ 20 double e0); /* prescribed error or number of elements */ 21 22 #endif 23