MESAHub / mesa

Modules for Experiments in Stellar Astrophysics
http://mesastar.org
GNU Lesser General Public License v2.1
138 stars 38 forks source link

Refactor surface corrections to re-use same loop regardless of `radial_only` #736

Open warrickball opened 2 days ago

warrickball commented 2 days ago

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 astero test surface_effects passed locally.