Fixed bugs in computing PME energy with CPU platform