Unified parallel algorithm for grid adaptation on a multiple-instruction multiple-data architecture | Synapse