updated specfem3d_legacy