Alterations for speed-up of CoarseningLocalisation:
Made f, the function argument of the method, able to be a list or tuple of functions, and this means that when localisation a whole ensemble of functions, one has to only preallocate one comparison function for the injection.
Changed this in weight_update and emd_kernel where ensemble loops of CoarseningLocalisation are used.
A test is added, showing that lists of functions can be an argument to CoarseningLocalisation.
Alterations for accepting non-hierarchal meshes:
CoarseningLocalisation now doesn't throw an error when a non-hierarchy mesh is given, it just caps r_loc down to zero. This means that a check of hierarchy isn't needed in weight_update anymore; CoarseningLocalisation is simply carried out regardless, and the check to cap r_loc happens there.
A test is edited to make sure when this happens the same function is returned (no localisation).
Alterations for speed-up of
CoarseningLocalisation
:Made
f
, the function argument of the method, able to be alist
ortuple
of functions, and this means that when localisation a whole ensemble of functions, one has to only preallocate one comparison function for the injection.Changed this in
weight_update
andemd_kernel
where ensemble loops ofCoarseningLocalisation
are used.A test is added, showing that lists of functions can be an argument to
CoarseningLocalisation
.Alterations for accepting non-hierarchal meshes:
CoarseningLocalisation
now doesn't throw an error when a non-hierarchy mesh is given, it just capsr_loc
down to zero. This means that a check of hierarchy isn't needed inweight_update
anymore;CoarseningLocalisation
is simply carried out regardless, and the check to capr_loc
happens there.A test is edited to make sure when this happens the same function is returned (no localisation).