Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mayer
CircularGreenSimCity
Commits
d3c7bc0a
Commit
d3c7bc0a
authored
1 year ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
changing divisor to double
parent
636e41dc
master
eric_enrich_trees
gPMayer2-master-patch-26512
gPMayer2-master-patch-49202
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tree-water-demand/src/main/java/de/hft/stuttgart/water/TreeWaterDemand.java
+2
-2
...src/main/java/de/hft/stuttgart/water/TreeWaterDemand.java
with
2 additions
and
2 deletions
+2
-2
tree-water-demand/src/main/java/de/hft/stuttgart/water/TreeWaterDemand.java
+
2
-
2
View file @
d3c7bc0a
...
...
@@ -229,8 +229,8 @@ public class TreeWaterDemand {
double
omegas
=
Math
.
acos
(-
Math
.
tan
(
phi
)
*
Math
.
tan
(
delta
));
double
ra
=
0
;
if
(!(
omega
<
-
omegas
||
omega
>
omegas
))
{
double
omega1
=
omega
-
Math
.
PI
*
1
/
24
;
double
omega2
=
omega
+
Math
.
PI
*
1
/
24
;
double
omega1
=
omega
-
Math
.
PI
*
1
/
24
d
;
double
omega2
=
omega
+
Math
.
PI
*
1
/
24
d
;
ra
=
12
*
60
/
Math
.
PI
*
0.0820
*
dr
*
((
omega2
-
omega1
)
*
Math
.
sin
(
phi
)
*
Math
.
sin
(
delta
)
+
Math
.
cos
(
phi
)
*
Math
.
cos
(
delta
)
*
(
Math
.
sin
(
omega2
)
-
Math
.
sin
(
omega1
)));
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets