localpressure: modified to compute and write kinetic and virial components of pressure separately