Modifed run_lmp for example library.