Some code for use with CAC Virtual Workshop on Balancing Scripts and Compiled Code in Scientific Applications, https://www.cac.cornell.edu/VW/scripts/exercise2.aspx