Adaptive methods for problems in solid and fluid mechanics