From d4eacc3728c232ec19a7a711d09101f7ee1bb667 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 19 Aug 2010 16:22:54 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4512 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/dump_custom.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dump_custom.cpp b/src/dump_custom.cpp index 0ec1b1c94d..4e8783f199 100644 --- a/src/dump_custom.cpp +++ b/src/dump_custom.cpp @@ -221,6 +221,13 @@ void DumpCustom::init() variable[i] = ivariable; } + // set index and check validity of region + + if (iregion >= 0) { + iregion = domain->find_region(idregion); + if (iregion == -1) error->all("Region ID for dump custom does not exist"); + } + // open single file, one time only if (multifile == 0) openfile();