Looking at the source, gravtot is a single floating point number, unlike gravx and gravy which are arrays of floating point numbers.
Reading line 1047 of Simulation.cpp shows that gravtot is the result of some fancy calculation involving gravx and gravy which you can hopefully decipher yourself