/* this is just make gs.sig compatible with the hack
of sending signals around by MPI_Reduce with together with
other floats */
+ /* NOTE: this only works for serial code. For code that allows
+ MPI nodes to propagate their condition, see kernel/md.c*/
if ( gmx_get_stop_condition() == gmx_stop_cond_next_ns )
gs.set[eglsSTOPCOND]=1;
if ( gmx_get_stop_condition() == gmx_stop_cond_next )
*/
string GmxOpenMMPlatformOptions::getOptionValue(const string &opt)
{
- if (options.find(toUpper(opt)) != options.end())
+ map<string, string> :: const_iterator it = options.find(toUpper(opt));
+ if (it != options.end())
{
- return options[toUpper(opt)];
+ // cout << "@@@>> " << it->first << " : " << it->second << endl;
+ return it->second;
}
else
{
char strout_buf[STRLEN];
int which_test;
int res = 0;
- const char * test_type = opt->getOptionValue("memtest").c_str();
+ string s = opt->getOptionValue("memtest");
+ const char * test_type =
+ s.c_str();
+ /* NOTE: thie code below for some misterious reason does NOT work
+ with MSVC, but the above "fix" seems to solve the problem - not sure why though */
+ // opt->getOptionValue("memtest").c_str();
+
if (!gmx_strcasecmp(test_type, "off"))
{
{
gmx_fatal(FARGS, "Amount of seconds for memetest is negative (%d). ", which_test);
}
-
+
switch (which_test)
{
case 0: /* no memtest */