Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
swe_solvers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
swe_solvers
Commits
7bbdf9b4
Commit
7bbdf9b4
authored
Dec 04, 2012
by
Sebastian Rettenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set true-case first
parent
c7751064
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
FWaveVec.hpp
src/solver/FWaveVec.hpp
+5
-5
No files found.
src/solver/FWaveVec.hpp
View file @
7bbdf9b4
...
...
@@ -154,14 +154,14 @@ public:
}
//2nd wave family
if
(
waveSpeeds
[
1
]
<
-
zeroTol
)
{
//left going
hUpdateLeft
+=
fWaves
[
1
];
huUpdateLeft
+=
fWaves
[
1
]
*
waveSpeeds
[
1
];
}
else
if
(
waveSpeeds
[
1
]
>
zeroTol
)
{
if
(
waveSpeeds
[
1
]
>
zeroTol
)
{
//right going
hUpdateRight
+=
fWaves
[
1
];
huUpdateRight
+=
fWaves
[
1
]
*
waveSpeeds
[
1
];
}
else
if
(
waveSpeeds
[
1
]
<
-
zeroTol
)
{
//left going
hUpdateLeft
+=
fWaves
[
1
];
huUpdateLeft
+=
fWaves
[
1
]
*
waveSpeeds
[
1
];
}
else
{
//split waves
hUpdateLeft
+=
(
T
)
.5
*
fWaves
[
1
];
huUpdateLeft
+=
(
T
)
.5
*
fWaves
[
1
]
*
waveSpeeds
[
1
];
...
...
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