implement clang-tidy fixes
This commit is contained in:
@ -150,7 +150,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) :
|
||||
if (has_git_info() && ((update_string == " - Development") || (update_string == " - Maintenance")))
|
||||
update_string += fmt::format(" - {}", git_descriptor());
|
||||
|
||||
external_comm = 0;
|
||||
external_comm = MPI_COMM_NULL;
|
||||
mdicomm = nullptr;
|
||||
|
||||
skiprunflag = 0;
|
||||
@ -807,7 +807,7 @@ LAMMPS::~LAMMPS() noexcept(false)
|
||||
// free a copy of uorig here, so check in universe destructor will still work
|
||||
|
||||
MPI_Comm copy = universe->uorig;
|
||||
if (external_comm) MPI_Comm_free(©);
|
||||
if (external_comm != MPI_COMM_NULL) MPI_Comm_free(©);
|
||||
|
||||
delete input;
|
||||
delete universe;
|
||||
|
||||
Reference in New Issue
Block a user