From 631f33feb594f40eaed11d5c7eee613b4f0db88f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 10 Aug 2022 06:57:59 -0400 Subject: [PATCH] remove redundant calls --- src/lammps.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lammps.cpp b/src/lammps.cpp index 418a740808..b7318b9b55 100644 --- a/src/lammps.cpp +++ b/src/lammps.cpp @@ -545,7 +545,6 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) : screen = fopen(str.c_str(),"w"); if (screen == nullptr) error->one(FLERR,"Cannot open screen file {}: {}",str,utils::getsyserror()); - setvbuf(screen, NULL, _IONBF, 0); } else if (strcmp(arg[screenflag],"none") == 0) { screen = nullptr; } else { @@ -569,7 +568,6 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) : logfile = fopen(str.c_str(),"w"); if (logfile == nullptr) error->one(FLERR,"Cannot open logfile {}: {}",str, utils::getsyserror()); - setbuf(logfile, NULL); } else if (strcmp(arg[logflag],"none") == 0) { logfile = nullptr; } else {