changed the static variables to functons in SetConductivitiesToTetmesh files