A class named LocalProblem_EOS is defined to calculate the secondary variables
and made some modifications to the functions for EOS