Fixes bug where -e and -dt flags did not work anymore.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 11 Jun 2014 20:36:58 +0000 (22:36 +0200)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 11 Jun 2014 20:36:58 +0000 (22:36 +0200)
This was introduced recently during the overhaul of the option
processing.

Change-Id: Ife68ee4f53b54198333c1c135f7f5d9994081b1f

src/gromacs/commandline/pargs.cpp

index c5e2cd36647aeb9d9fe14a62946b4bc8ec50fbc8..fc9f88b5379dfbef408b296793bb90332f80461a 100644 (file)
@@ -648,11 +648,11 @@ gmx_bool parse_common_args(int *argc, char *argv[], unsigned long Flags,
         {
             setTimeValue(TBEGIN, tbegin);
         }
-        if (FF(PCA_CAN_END) && options.isSet("-e"))
+        if (FF(PCA_CAN_END) && options.isSet("e"))
         {
             setTimeValue(TEND, tend);
         }
-        if (FF(PCA_CAN_DT) && options.isSet("-dt"))
+        if (FF(PCA_CAN_DT) && options.isSet("dt"))
         {
             setTimeValue(TDELTA, tdelta);
         }