Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cassiopee
jalhyd
Commits
c154e476
Commit
c154e476
authored
Aug 06, 2019
by
Mathias Chouet
🍝
Browse files
Fix bug in CourbeRemous
parent
3f44ff89
Changes
3
Hide whitespace changes
Inline
Side-by-side
spec/remous/remous_rect_trapezes_pentefaible.spec.ts
View file @
c154e476
...
...
@@ -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
...
...
src/remous/remous.ts
View file @
c154e476
...
...
@@ -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
;
...
...
src/util/resultelement.ts
View file @
c154e476
...
...
@@ -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
];
}
}
}
...
...
Dorchies David
@david.dorchies
mentioned in issue
#116 (closed)
·
Aug 06, 2019
mentioned in issue
#116 (closed)
mentioned in issue #116
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment