lihu begins this section of his speech with a request for a little more time to speak (Job 36:2). His topic hasn't really changed. He primarily intends to elevate and exalt God in the minds of his listeners. And, he briefly reminds Job that gratitude and praise are appropriate responses in the middle of even the greatest of pain.
Lest we jump on Elihu too quickly for what may appear to be insensitive piety, take a look at a few other passages regarding his secondary topic (compare Job 36:24 to James 1:2, 1st Peter 4:12-14, & 1st Thessalonians 5:18). Elihu’s advice isn't so strange after all... hard to swallow, yes; but not unique or unusual in Scripture.
So, even when we are hurting, we are obliged to declare that our God is righteous (Job 36:3), mighty, strong, wise (Job 36:5), compassionate (Job 36:6), sovereign (Job 36:7), judicial (Job 36:10-12), autonomous, instructive, perfect, worthy, present, eternal, creative, controlling, detailed, generous and evident.