Removing the virial temperature, which is not a reliable measure.
Earlier, I had put in a calculation of temperature via the virial
to try to validate the potential energy distribution. It turns out
this is not a good way of doing things, as the virial temperature
differs from the true temperature by a factor proportional to the
pressure, which is not very useful for sentitive calculations. It's
better to use the ensemble validation relationships I developed.
So in the spirit of simplifying the code (which we all agree needs
to be done), I'm removing this calculation.
Change-Id: Ic942b9af294d928d1675de4f45436dc43aff9649
F_ETOT,
F_ECONSERVED,
F_TEMP,
- F_VTEMP,
+ F_VTEMP_NOLONGERUSED,
F_PDISPCORR,
F_PRES,
F_DHDL_CON,
def_nofc ("ETOT", "Total Energy" ),
def_nofc ("ECONS", "Conserved En." ),
def_nofc ("TEMP", "Temperature" ),
- def_nofc ("VTEMP", "Vir. Temp." ),
+ def_nofc ("VTEMP", "Vir. Temp. (not used)" ),
/* Note that pressure names can not be more than 8 char's,
* because " (bar)" is appended to them.
*/
{ 46, F_COM_PULL },
{ 20, F_EQM },
{ 46, F_ECONSERVED },
- { 69, F_VTEMP },
+ { 69, F_VTEMP_NOLONGERUSED},
{ 66, F_PDISPCORR },
{ 54, F_DHDL_CON },
{ 76, F_ANHARM_POL },
case F_DISRESVIOL: u = unit_length; break;
case F_ORIRESDEV: u = "obs"; break;
case F_TEMP: u = unit_temp_K; break;
- case F_VTEMP: u = unit_temp_K; break;
case F_PDISPCORR:
case F_PRES: u = unit_pres_bar; break;
}
enerd->term[F_PDISPCORR] = prescorr;
enerd->term[F_PRES] += prescorr;
*pcurr = enerd->term[F_PRES];
- /* calculate temperature using virial */
- enerd->term[F_VTEMP] = calc_temp(trace(total_vir),ir->opts.nrdf[0]);
-
}
}
md->bEner[i] = FALSE;
else if ((i == F_ETOT) || (i == F_EKIN) || (i == F_TEMP))
md->bEner[i] = EI_DYNAMICS(ir->eI);
- else if (i==F_VTEMP)
- md->bEner[i] = (EI_DYNAMICS(ir->eI) && getenv("GMX_VIRIAL_TEMPERATURE"));
else if (i == F_DISPCORR || i == F_PDISPCORR)
md->bEner[i] = (ir->eDispCorr != edispcNO);
else if (i == F_DISRESVIOL)
break;
case F_PRES:
case F_PDISPCORR:
- case F_VTEMP:
if (bPres)
{
ato[to++] = afrom[from++];