updating materials and environment
updating jacobian for waves