// the first time the object is used, it will be a "first iteration", to ensure data structures are properly initialised.
is_first_scale=1;
// In the first iteration, if refinement is enabled, determine the number of refinement iterations required to arrive at the target accuracy (if achievable in a reasonable number of iterations)
refinemode=2;
// maxrefiters and accuracygoal should be configurable and preferably set somewhere else
// the first time the object is used, it will be a "first iteration", to ensure data structures are properly initialised.
is_first_scale=1;
// In the first iteration, if refinement is enabled, determine the number of refinement iterations required to arrive at the target accuracy (if achievable in a reasonable number of iterations)
refinemode=2;
// maxrefiters and accuracygoal should be configurable and preferably set somewhere else