fixed small bug initializing elc with the new p3m on gpu