Template parameterized p3m charge assignment.
The same for the force assignment.