20
21
//-----------------------------------------------------------------------------
21
22
Homotopy::Homotopy(uint n)
22
23
: tol(0), n(n), M(0), maxiter(0), maxpaths(0), maxdegree(0),
23
divtol(0), monitor(false), random(false), solver(0), filename(""),
24
mi(0), ci(0), tmp(0), x(2*n),
24
divtol(0), monitor(false), random(false),
25
filename(""), mi(0), ci(0), tmp(0), x(2*n),
25
26
degree_adjusted("Adjusting degree of equation, maximum reached.")
27
28
dolfin_info("Creating homotopy for system of size %d.", n);
29
30
// We should not solve the dual problem
35
36
// Get divergence tolerance
36
37
divtol = get("homotopy divergence tolerance");