Heat equation with temperature-dependent source terms

Please use proper formatting of both your code and error messages. You should use ```-encapsulation,

Also, please make the code a minimal working code. Follow the guidelines at: Read before posting: How do I get my question answered?