Skip to content

Commit 051888c

Browse files
authored
Add missing partial derivative block in jacobian of heteroazeotrope_t (#320)
1 parent fd69449 commit 051888c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/feos-core/src/phase_equilibria/phase_diagram_binary.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,10 @@ impl<E: Residual> PhaseEquilibrium<E, 3> {
442442

443443
// calculate Jacobian
444444
let jacobian = stack![
445-
dmu_drho_l1, 0, 0;
446-
0, dmu_drho_l2, -dmu_drho_v;
447-
dp_drho_l1, 0, -&dp_drho_v;
448-
0, dp_drho_l2, -dp_drho_v
445+
dmu_drho_l1, 0 , -&dmu_drho_v;
446+
0 , dmu_drho_l2, -dmu_drho_v;
447+
dp_drho_l1 , 0 , -&dp_drho_v;
448+
0 , dp_drho_l2 , -dp_drho_v
449449
];
450450

451451
// calculate Newton step

0 commit comments

Comments
 (0)