From 43fcf6eccc4d0acc3f5090680906cf6743532716 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 25 Apr 2025 11:44:03 -0400 Subject: [PATCH] use ioffset variable. --- src/dump_custom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dump_custom.cpp b/src/dump_custom.cpp index 56836b8446..273b39525c 100644 --- a/src/dump_custom.cpp +++ b/src/dump_custom.cpp @@ -78,8 +78,8 @@ DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) : int ioffset = 5; expand = 0; - nfield = nargnew = utils::expand_args(FLERR,narg-5,&arg[5],1,earg,lmp); - if (earg != &arg[5]) expand = 1; + nfield = nargnew = utils::expand_args(FLERR,narg-ioffset,&arg[ioffset],1,earg,lmp); + if (earg != &arg[ioffset]) expand = 1; // allocate field vectors