Fix compile errors in vector
Add calculate_forces