From: Roland Schulz Date: Wed, 22 Sep 2021 07:13:16 +0000 (-0700) Subject: Fix compilation with GMX_USE_MUPARSER=None X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=1f01c066a51d6de0686a80dc35620fda1a875a45;p=alexxy%2Fgromacs.git Fix compilation with GMX_USE_MUPARSER=None Without muparser enabled, it is in invalid to catch its exception. Related #4165 --- diff --git a/src/gromacs/pulling/transformationcoordinate.cpp b/src/gromacs/pulling/transformationcoordinate.cpp index cc52053af5..5271e397d0 100644 --- a/src/gromacs/pulling/transformationcoordinate.cpp +++ b/src/gromacs/pulling/transformationcoordinate.cpp @@ -62,6 +62,7 @@ double getTransformationPullCoordinateValue(pull_coord_work_t* coord) { result = coord->expressionParser.evaluate(coord->transformationVariables); } +#if HAVE_MUPARSER catch (mu::Parser::exception_type& e) { GMX_THROW(InternalError( @@ -69,6 +70,7 @@ double getTransformationPullCoordinateValue(pull_coord_work_t* coord) transformationPullCoordinateIndex + 1, e.GetMsg().c_str()))); } +#endif catch (std::exception& e) { GMX_THROW(InternalError(