finishing port of https://www.nersc.gov/users/computational-systems/cori/application-porting-and-performance/vectorization/