muframelsq = gmx_stats_init();
+ /* Initialise */
+ for(m=0; (m<DIM); m++)
+ M_av2[m] = 0;
+
if (bMU)
{
/* Copy rvec into double precision local variable */
{
/* Initialise */
for(m=0; (m<DIM); m++)
- {
M_av[m] = 0;
- M_av2[m] = 0;
- }
+
gmx_rmpbc(gpbc,natom,box,x);
/* Begin loop of all molecules in frame */
bCont = read_mu_from_enx(fmu,iVol,iMu,mu_t,&volume,&t,nre,fr);
else
bCont = read_next_x(oenv,status,&t,natom,x,box);
- } while (bCont);
+ timecheck=check_times(t);
+ } while (bCont && (timecheck == 0) );
gmx_rmpbc_done(gpbc);
printf("WARNING: EpsilonRF = 0.0, this really means EpsilonRF = infinity\n");
bMU = opt2bSet("-en",NFILE,fnm);
+ if (bMU)
+ gmx_fatal(FARGS,"Due to new ways of treating molecules in GROMACS the total dipole in the energy file may be incorrect, because molecules can be split over periodic boundary conditions before computing the dipole. Please use your trajectory file.");
bQuad = opt2bSet("-q",NFILE,fnm);
bGkr = opt2bSet("-g",NFILE,fnm);
if (opt2parg_bSet("-ncos",asize(pa),pa)) {