From 76cc545d2abdafa4cf5cdb1b91fd18da83b9127d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 31 Aug 2017 16:14:45 -0400 Subject: [PATCH] convert early fix ordering error to warning --- src/POEMS/fix_poems.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/POEMS/fix_poems.cpp b/src/POEMS/fix_poems.cpp index 8dd41dc1f6..b8fdb03447 100644 --- a/src/POEMS/fix_poems.cpp +++ b/src/POEMS/fix_poems.cpp @@ -368,7 +368,7 @@ void FixPOEMS::init() error->all(FLERR,"POEMS fix must come before NPT/NPH fix"); } - // error if any non-rigid fix with post_force succeeds any fix rigid: + // warn if any non-rigid fix with post_force succeeds any fix rigid: int first_rigid = 0; while (!modify->fix[first_rigid]->rigid_flag) first_rigid++; @@ -378,13 +378,13 @@ void FixPOEMS::init() if ( (modify->fmask[i] & POST_FORCE) && (!ifix->rigid_flag) ) { count++; if (comm->me == 0) { + if (count == 1) + error->warning(FLERR,"The following fixes must preceed any rigid-body fixes"); if (screen) fprintf(screen,"> fix %s %s\n",ifix->id,ifix->style); if (logfile) fprintf(logfile,"> fix %s %s\n",ifix->id,ifix->style); } } } - if (count > 0) - error->all(FLERR,"the fixes listed above must preceed all rigid-body fixes"); // timestep info