| 405 | }; |
| 406 | |
| 407 | double call(double W) override { |
| 408 | input_vals[1] = W; |
| 409 | double T = _HUGE, psi_w = _HUGE; |
| 410 | _HAPropsSI_inputs(p, input_keys, input_vals, T, psi_w); |
| 411 | if (CoolProp::get_debug_level() > 0) { |
| 412 | std::cout << format("T: %g K, psi_w %g\n", T, psi_w); |
| 413 | } |
| 414 | return _HAPropsSI_outputs(OutputKey, p, T, psi_w) - TargetVal; |
| 415 | } |
| 416 | }; |
| 417 | |
| 418 | BrentSolverResids BSR = BrentSolverResids(OutputKey, p, In1Name, Input1, TargetVal); |
nothing calls this directly
no test coverage detected