#include <config.h>
#endif
+#include <math.h>
#include "typedefs.h"
#include "gmx_fatal.h"
#include "mdrun.h"
+#include "md_support.h"
+#include "types/iteratedconstraints.h"
#ifdef GMX_DOUBLE
#define CONVERGEITER 0.000000001
practice. Generally, 3-5 iterations will be sufficient */
real relerr,err,xmin;
- char buf[256];
int i;
gmx_bool incycle;
/* how many close calls have we had? If less than a few, we're OK */
if (iterate->num_close < MAX_NUMBER_CLOSE)
{
- sprintf(buf,"Slight numerical convergence deviation with NPT at step %d, relative error only %10.5g, likely not a problem, continuing\n",nsteps,relerr);
- md_print_warning(cr,fplog,buf);
+ md_print_warn(cr,fplog,"Slight numerical convergence deviation with NPT at step %d, relative error only %10.5g, likely not a problem, continuing\n",nsteps,relerr);
iterate->num_close++;
return TRUE;
/* if more than a few, check the total fraction. If too high, die. */