From 58093fec99c6af853c1a9e87681abec6d86eadaa Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 12 May 2022 15:26:39 -0400 Subject: [PATCH] accept .lammpsbin in addition to .bin for binary format output --- src/dump.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dump.cpp b/src/dump.cpp index ac089de8c9..057efe9a35 100644 --- a/src/dump.cpp +++ b/src/dump.cpp @@ -142,7 +142,8 @@ Dump::Dump(LAMMPS *lmp, int /*narg*/, char **arg) : Pointers(lmp) if (strchr(filename,'*')) multifile = 1; - if (utils::strmatch(filename, "\\.bin$")) binary = 1; + if ((utils::strmatch(filename, "\\.bin$") + || (utils::strmatch(filename, "\\.lammpsbin$"))) binary = 1; if (platform::has_compress_extension(filename)) compressed = 1; }