Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
SPINS_main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Deepwell
SPINS_main
Commits
22a6bfac
Commit
22a6bfac
authored
Mar 15, 2019
by
David Deepwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the v-velocity initialization
parent
f6bae124
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/cases/wave_reader/wave_reader.cpp
src/cases/wave_reader/wave_reader.cpp
+6
-2
No files found.
src/cases/wave_reader/wave_reader.cpp
View file @
22a6bfac
...
...
@@ -194,7 +194,11 @@ class userControl : public BaseCase {
// else start from other data formats
init_field
(
"u"
,
u_filename
,
u
,
input_data_types
);
init_field
(
"w"
,
w_filename
,
w
,
input_data_types
);
v
=
0
*
ii
+
0
*
jj
+
0
*
kk
;
if
(
Ny
>
1
||
rot_f
!=
0
)
{
init_field
(
"v"
,
v_filename
,
v
,
input_data_types
);
}
else
{
v
=
0
*
ii
+
0
*
jj
+
0
*
kk
;
}
// Add a random perturbation to trigger any 3D instabilities
int
myrank
;
...
...
@@ -206,7 +210,7 @@ class userControl : public BaseCase {
for
(
int
k
=
u
.
lbound
(
thirdDim
);
k
<=
u
.
ubound
(
thirdDim
);
k
++
)
{
u
(
i
,
j
,
k
)
*=
1
+
perturb
*
rnd
.
random
();
w
(
i
,
j
,
k
)
*=
1
+
perturb
*
rnd
.
random
();
if
(
Ny
>
1
||
rot_f
!=
0
)
if
(
Ny
>
1
||
rot_f
!=
0
)
v
(
i
,
j
,
k
)
*=
1
+
perturb
*
rnd
.
random
();
}
}
...
...
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