The surface correction loops over the modes currently work by always deriving the radial correction and then proceeding onto the non-radial corrections if radial_only is .false.. This PR consolidates the radial and non-radial loops by using radial_only to decide whether to loop over ℓ up to 0 (if .true.) or 3 (if .false.).
I also cleared out trailing whitespace in that file while I was at it.
The surface correction loops over the modes currently work by always deriving the radial correction and then proceeding onto the non-radial corrections if
radial_only
is.false.
. This PR consolidates the radial and non-radial loops by usingradial_only
to decide whether to loop over ℓ up to 0 (if.true.
) or 3 (if.false.
).I also cleared out trailing whitespace in that file while I was at it.
The
astero
testsurface_effects
passed locally.