Remove the loop over 'dim' in stabilisation.py and fields_calculations.py.