Fixing warnings in solid mechanics module.

@backmari, can you comment on why you compute all these values but
they aren't used for anything?

#1777