update temperature boundary conditions in core

1. Create update() function in temperature boundary condition.
2. Call update() in core.cc