public static double v_given_pt(double p, double t) //DO NOT USE IN VAPOR DOME { double ret_val; try { ret_val = 1.0 / IF97.rhomass_Tp(t, p / 1000000.0); //expects:K,MPa returns Kg/M^3 return(ret_val); } catch (Exception ex) { Debug.Log(String.Format("Got an exception: {0}\nReturning {1}", ex.Message, v_neutral)); got_error = true; return(v_neutral); } //return 1.0/IF97.rhomass_Tp(t,p/1000000.0); //expects:K,MPa returns Kg/M^3 }