This code would be easier to understand if you wrote it as

if (dependence & NonlinearDependence::temperature != none)
  return (thermal_alpha != 0)
else if (dependence & NonlinearDependence::pressure != none)
  return (reference_compressibility != 0)
else
  return false;