From 0af2f153de787ed089f8bd6de949e19854b539ac Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 20 Oct 2022 18:05:55 -0400 Subject: [PATCH] check for and replace *really* old LAMMPS home page URL. apply fixes. --- src/DIPOLE/pair_lj_cut_dipole_long.h | 4 ++-- src/OPENMP/fix_nvt_sllod_omp.h | 4 ++-- src/PHONON/fix_phonon.h | 4 ++-- src/SPIN/pair_spin_dipole_cut.h | 4 ++-- src/SPIN/pair_spin_dipole_long.h | 4 ++-- src/STUBS/mpi.h | 4 ++-- src/UEF/fix_nh_uef.h | 4 ++-- src/fix_nvt_sllod.h | 4 ++-- tools/coding_standard/homepage.py | 3 ++- 9 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/DIPOLE/pair_lj_cut_dipole_long.h b/src/DIPOLE/pair_lj_cut_dipole_long.h index 03f4c1561c..56ddfc8844 100644 --- a/src/DIPOLE/pair_lj_cut_dipole_long.h +++ b/src/DIPOLE/pair_lj_cut_dipole_long.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator - www.cs.sandia.gov/~sjplimp/lammps.html - Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories + https://www.lammps.org/, Sandia National Laboratories + Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/src/OPENMP/fix_nvt_sllod_omp.h b/src/OPENMP/fix_nvt_sllod_omp.h index c78564aba8..f126a599cf 100644 --- a/src/OPENMP/fix_nvt_sllod_omp.h +++ b/src/OPENMP/fix_nvt_sllod_omp.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator - www.cs.sandia.gov/~sjplimp/lammps.html - Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories + https://www.lammps.org/, Sandia National Laboratories + Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/src/PHONON/fix_phonon.h b/src/PHONON/fix_phonon.h index 7c790c5efb..51c5e355d4 100644 --- a/src/PHONON/fix_phonon.h +++ b/src/PHONON/fix_phonon.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator - www.cs.sandia.gov/~sjplimp/lammps.html - Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories + https://www.lammps.org/, Sandia National Laboratories + Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/src/SPIN/pair_spin_dipole_cut.h b/src/SPIN/pair_spin_dipole_cut.h index dd21d68374..9ad1da1051 100644 --- a/src/SPIN/pair_spin_dipole_cut.h +++ b/src/SPIN/pair_spin_dipole_cut.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator - www.cs.sandia.gov/~sjplimp/lammps.html - Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories + https://www.lammps.org/, Sandia National Laboratories + Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/src/SPIN/pair_spin_dipole_long.h b/src/SPIN/pair_spin_dipole_long.h index c3337327ff..e5e228d082 100644 --- a/src/SPIN/pair_spin_dipole_long.h +++ b/src/SPIN/pair_spin_dipole_long.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator - www.cs.sandia.gov/~sjplimp/lammps.html - Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories + https://www.lammps.org/, Sandia National Laboratories + Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/src/STUBS/mpi.h b/src/STUBS/mpi.h index 1d0ab8413d..139126fb63 100644 --- a/src/STUBS/mpi.h +++ b/src/STUBS/mpi.h @@ -1,6 +1,6 @@ /* -*- c++ -*- ----------------------------------------------------------- - LAMMPS 2003 (July 31) - Molecular Dynamics Simulator - Sandia National Laboratories, www.cs.sandia.gov/~sjplimp/lammps.html + LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator + https://www.lammps.org/, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract diff --git a/src/UEF/fix_nh_uef.h b/src/UEF/fix_nh_uef.h index 02e9fd05e8..23db5a9b9f 100644 --- a/src/UEF/fix_nh_uef.h +++ b/src/UEF/fix_nh_uef.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator - www.cs.sandia.gov/~sjplimp/lammps.html - Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories + https://www.lammps.org/, Sandia National Laboratories + Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/src/fix_nvt_sllod.h b/src/fix_nvt_sllod.h index 13d002af82..4f5c6f64af 100644 --- a/src/fix_nvt_sllod.h +++ b/src/fix_nvt_sllod.h @@ -1,7 +1,7 @@ /* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator - www.cs.sandia.gov/~sjplimp/lammps.html - Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories + https://www.lammps.org/, Sandia National Laboratories + Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains diff --git a/tools/coding_standard/homepage.py b/tools/coding_standard/homepage.py index 8d3f158a24..e83f6262c6 100644 --- a/tools/coding_standard/homepage.py +++ b/tools/coding_standard/homepage.py @@ -42,7 +42,7 @@ patterns: """ def check_homepage(f): - pattern = re.compile(r'.*lammps.sandia.gov.*') # lgtm [py/incomplete-hostname-regexp] + pattern = re.compile(r'.*(lammps.sandia.gov|www.cs.sandia.gov).*') # lgtm [py/incomplete-hostname-regexp] lineno = 1 errors = set() @@ -84,6 +84,7 @@ def fix_file(path, check_result): newline = newline.replace("http://lammps.sandia.gov,","https://www.lammps.org/") newline = newline.replace("lammps.sandia.gov","www.lammps.org") newline = newline.replace("http://www.lammps.org","https://www.lammps.org") + newline = newline.replace("www.cs.sandia.gov/~sjplimp/lammps.html","https://www.lammps.org") print(newline, end='', file=out) shutil.copymode(path, newfile) shutil.move(newfile, path)