Commit c154e476 authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Fix bug in CourbeRemous

parent 3f44ff89
......@@ -639,7 +639,6 @@ describe("Class Remous / section rectangulaire :", () => {
compareLog(res.globalLog, expLog);
});
// désactivé suite au changement de format de résultat
it("faible pente, pas de fluvial, torrentiel tronqué, calcul Hs", () => {
const prms = new ParamsSectionRectang(undefined, // tirant d'eau
2.5, // largeur de fond
......
......@@ -481,8 +481,6 @@ export class CourbeRemous extends SectionNub {
}
// Calcul de la variable à calculer
const tRes: { [key: number]: number } = {};
if (valACal) {
for (const re of res.resultElements) {
const rY = re.vCalc;
......
......@@ -39,6 +39,10 @@ export class ResultElement {
} else if (v !== undefined) {
// assuming key-value map
this._values = v;
// assuming 1st value is vCalc
if (Object.keys(v).length > 0) {
this._vCalcSymbol = Object.keys(v)[0];
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment