Snapshot WIP: solver HP epic progress, BPHX/HX physics, BMAD skill refresh.
Some checks failed
CI / check (push) Has been cancelled
Some checks failed
CI / check (push) Has been cancelled
Capture uncommitted solver robustness work (regularization, domain errors, linear solver lifecycle, tube DP/MSH), web workbench updates, and synced BMAD skills across IDE agent folders before starting BPHX pressure-drop. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -16,7 +16,9 @@ fn coolprop_vendor_root() -> Option<PathBuf> {
|
||||
PathBuf::from("vendor/coolprop"),
|
||||
];
|
||||
candidates.into_iter().find_map(|p| {
|
||||
p.canonicalize().ok().filter(|abs| abs.join("CMakeLists.txt").exists())
|
||||
p.canonicalize()
|
||||
.ok()
|
||||
.filter(|abs| abs.join("CMakeLists.txt").exists())
|
||||
})
|
||||
}
|
||||
|
||||
@@ -145,10 +147,7 @@ fn main() {
|
||||
dst.display()
|
||||
);
|
||||
println!("cargo:rustc-link-search=native={}/lib", dst.display());
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}/build",
|
||||
vendor.display()
|
||||
);
|
||||
println!("cargo:rustc-link-search=native={}/build", vendor.display());
|
||||
println!("cargo:rustc-link-lib=static=CoolProp");
|
||||
|
||||
if target_os == "macos" {
|
||||
|
||||
@@ -387,11 +387,7 @@ pub unsafe fn is_fluid_available(fluid: &str) -> bool {
|
||||
let fluid_c = CString::new(fluid).unwrap();
|
||||
// CoolProp C API does not expose isfluid, so we try fetching a property
|
||||
let res = Props1SI(fluid_c.as_ptr(), c"Tcrit".as_ptr());
|
||||
if res.is_finite() && res != 0.0 {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
res.is_finite() && res != 0.0
|
||||
}
|
||||
|
||||
/// Get CoolProp version string.
|
||||
|
||||
Reference in New Issue
Block a user