From b6d98707ece20c08840159b66758aa79a93231ed Mon Sep 17 00:00:00 2001 From: Jacob Gissinger Date: Wed, 23 Sep 2020 11:23:10 -0400 Subject: [PATCH] molecule: revert overzealous error checking --- doc/src/Errors_messages.rst | 3 --- src/molecule.cpp | 2 -- src/molecule.h | 4 ---- 3 files changed, 9 deletions(-) diff --git a/doc/src/Errors_messages.rst b/doc/src/Errors_messages.rst index f2c57a0286..b1b9f38311 100644 --- a/doc/src/Errors_messages.rst +++ b/doc/src/Errors_messages.rst @@ -5723,9 +5723,6 @@ Doc page with :doc:`WARNING messages ` *Molecule file has no Fragments section* Self-explanatory. -*Molecule file has no Molecules section* - Self-explanatory. - *Molecule file has special flags but no bonds* Self-explanatory. diff --git a/src/molecule.cpp b/src/molecule.cpp index 600f865789..123eede230 100644 --- a/src/molecule.cpp +++ b/src/molecule.cpp @@ -636,8 +636,6 @@ void Molecule::read(int flag) error->all(FLERR,"Molecule file has no Body Integers section"); if (bodyflag && ndbody && dbodyflag == 0) error->all(FLERR,"Molecule file has no Body Doubles section"); - if (nmolecules > 0 && !moleculeflag) - error->all(FLERR,"Molecule file has no Molecules section"); if (nfragments > 0 && !fragmentflag) error->all(FLERR,"Molecule file has no Fragments section"); } diff --git a/src/molecule.h b/src/molecule.h index d7ada5b813..3316cd3f1f 100644 --- a/src/molecule.h +++ b/src/molecule.h @@ -281,10 +281,6 @@ E: Molecule file has no Body Doubles section Self-explanatory. -E: Molecule file has no Molecules section - -Self-explanatory. - E: Molecule file has no Fragments section Self-explanatory.