Skip to content
Snippets Groups Projects
Commit 5fc7674e authored by Dorchies David's avatar Dorchies David
Browse files

Merge branch...

Merge branch '343-courbe-de-remous-rendre-facultatif-l-une-des-deux-conditions-limites-en-cote' into 'devel'

Resolve "Courbe de remous : rendre facultatif l'une des deux conditions limites en cote"

Closes #343

See merge request cassiopee/jalhyd!144
parents a98a2c3f 05290739
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
import { ParamDefinition, ParamFamily } from "../internal_modules";
import { ParamDefinition, ParamDomain, ParamFamily } from "../internal_modules";
import { ParamDomainValue } from "../internal_modules";
import { ParamsEquation } from "../internal_modules";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment