Commit a482ea39 authored by Grand Francois's avatar Grand Francois
Browse files

#46 SectionParametree.getParameter() : correction bug ne retournant pas un...

 #46 SectionParametree.getParameter() : correction bug ne retournant pas un paramètre du genre Hs, B, P, ...
Showing with 4 additions and 7 deletions
+4 -7
......@@ -84,18 +84,15 @@ export class SectionParametree extends Nub {
}
public getParameter(name: string): ParamDefinition {
try {
return super.getParameter(name);
}
catch (e) {
let res = super.getParameter(name);
if (res === undefined) {
// pas trouvé -> il s'agit peut être d'une variable dans le genre Hs, B, P, ...
const res = this._sectionVars[name];
res = this._sectionVars[name];
if (!res)
throw new Error(`SectionParametree.getParameter() : nom de paramètre ${name} incorrect`);
return res;
}
return res;
}
public getFirstAnalyticalParameter(): ParamDefinition {
......
Supports Markdown
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