diff --git a/src/app/formulaire/definition/form-compute-courbe-remous.ts b/src/app/formulaire/definition/form-compute-courbe-remous.ts index 2a837d31a92a47b78f5306e8604dc84df2fe10e0..a4cff1cbd33cf69a83d6b5c460d0947fa63aa967 100644 --- a/src/app/formulaire/definition/form-compute-courbe-remous.ts +++ b/src/app/formulaire/definition/form-compute-courbe-remous.ts @@ -21,12 +21,6 @@ export class FormComputeCourbeRemous extends FormCompute { } protected compute() { - const cr: CourbeRemous = this._formBase.currentNub as CourbeRemous; - const sect: acSection = cr.Sn; - - this.resultYn = sect.CalcSection("Yn"); // hauteur normale - this.resultYc = sect.CalcSection("Yc"); // hauteur critique - this.reaffectResultComponents(); } @@ -40,9 +34,12 @@ export class FormComputeCourbeRemous extends FormCompute { this.remousResults.extraParamSymbol = this._formBase.currentNub.properties.getPropValue("varCalc"); // calcul - // this.remousResults.result = cr.calculRemous(this.remousResults.extraParamSymbol); this.remousResults.result = cr.CalcSerie(); + const sect: acSection = cr.Sn; + this.resultYn = sect.CalcSection("Yn"); // hauteur normale + this.resultYc = sect.CalcSection("Yc"); // hauteur critique + // données du graphe this.remousResults.hauteurNormale = this.resultYn.resultElement; this.remousResults.hauteurCritique = this.resultYc.resultElement;