Skip to content

Commit 76f302f

Browse files
Merge pull request #126 from Open3CL/fix_issue_87
fix: issue-87
2 parents 003ff24 + 95e2ce6 commit 76f302f

File tree

3 files changed

+1317
-3
lines changed

3 files changed

+1317
-3
lines changed

src/4_ventilation.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ function tv_q4pa_conv(di, de, cg, mur_list, ph_list, porte_list, bv_list) {
6767
if (!porte.donnee_entree.presence_joint) return acc + porte.donnee_entree.surface_porte;
6868
else return acc;
6969
}, 0);
70-
let pjt =
71-
surface_bv_avec_joint / (surface_bv_avec_joint + surface_bv_sans_joint) > 0.5 ? '1' : '0';
70+
const ratioSurfaceJoint = surface_bv_avec_joint / (surface_bv_avec_joint + surface_bv_sans_joint);
71+
let pjt = ratioSurfaceJoint > 0.5 ? '1' : '0';
72+
if (bug_for_bug_compat) {
73+
pjt = ratioSurfaceJoint >= 0.5 ? '1' : '0';
74+
}
7275

7376
if (bug_for_bug_compat && de.tv_q4pa_conv_id) {
7477
const rowQ4paConv = tv('q4pa_conv', {

0 commit comments

Comments
 (0)