diff --git a/src/open-channel/remous.ts b/src/open-channel/remous.ts index 7c20f500f0309008480d50467846ba04980f0b17..2e2f15a8031fce2e5c5087d6706383ae3df67570 100644 --- a/src/open-channel/remous.ts +++ b/src/open-channel/remous.ts @@ -547,6 +547,16 @@ export class CourbeRemous extends SectionNub { return this._prms as CourbeRemousParams; } + public isComputable(): boolean { + if (super.isComputable()) { + // au moins Z1 ou Z2 doit être défini + const z1 = this.prms.Z1; + const z2 = this.prms.Z2; + return z1.isDefined || z2.isDefined; + } + return false; + } + /** * Retourne la cote de fond à l'abscisse x * @param x abscisse en m (0 = amont) diff --git a/src/open-channel/remous_params.ts b/src/open-channel/remous_params.ts index 940346fc20096f72b546351950ece124b32e09e5..6e86a08f4c92a0e91c2d21ae45d4970eea301e88 100644 --- a/src/open-channel/remous_params.ts +++ b/src/open-channel/remous_params.ts @@ -1,4 +1,4 @@ -import { ParamDefinition, ParamFamily } from "../internal_modules"; +import { ParamDefinition, ParamDomain, ParamFamily } from "../internal_modules"; import { ParamDomainValue } from "../internal_modules"; import { ParamsEquation } from "../internal_modules";