Index: kernel/include/IMP/unary_functions/WormLikeChain.h =================================================================== --- kernel/include/IMP/unary_functions/WormLikeChain.h (revision 606) +++ kernel/include/IMP/unary_functions/WormLikeChain.h (working copy) @@ -31,7 +31,11 @@ /** \param[in] l_max maximum length of the chain in angstroms \param[in] lp persistence length in angstroms */ - WormLikeChain(Float l_max, Float lp) : lmax_(l_max), lp_(lp) {} + WormLikeChain(Float l_max, Float lp) : lmax_(l_max), lp_(lp) { + IMP_check(l_max > lp, "The persistance length should be less " + << "than the total length for this model", + ValueException); + } virtual ~WormLikeChain() {}