Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jalhyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
Cassiopée
jalhyd
Commits
05290739
Commit
05290739
authored
2 years ago
by
François Grand
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Remous: make Z1,Z2 optionally undefined
refs
#343
parent
a98a2c3f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/open-channel/remous.ts
+10
-0
10 additions, 0 deletions
src/open-channel/remous.ts
src/open-channel/remous_params.ts
+1
-1
1 addition, 1 deletion
src/open-channel/remous_params.ts
with
11 additions
and
1 deletion
src/open-channel/remous.ts
+
10
−
0
View file @
05290739
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
src/open-channel/remous_params.ts
+
1
−
1
View file @
05290739
import
{
ParamDefinition
,
ParamFamily
}
from
"
../internal_modules
"
;
import
{
ParamDefinition
,
ParamDomain
,
ParamFamily
}
from
"
../internal_modules
"
;
import
{
ParamDomainValue
}
from
"
../internal_modules
"
;
import
{
ParamsEquation
}
from
"
../internal_modules
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment