Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
2ecf4819
There was a problem fetching the pipeline summary.
Commit
2ecf4819
authored
Jun 6, 2017
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
get rid of some warnings
parent
576c627c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!21
Bugfix/nansampling
Pipeline
#
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
bfps/cpp/field.hpp
+3
-3
3 additions, 3 deletions
bfps/cpp/field.hpp
bfps/cpp/field_binary_IO.cpp
+1
-1
1 addition, 1 deletion
bfps/cpp/field_binary_IO.cpp
bfps/cpp/kspace.cpp
+1
-1
1 addition, 1 deletion
bfps/cpp/kspace.cpp
bfps/cpp/vorticity_equation.cpp
+1
-1
1 addition, 1 deletion
bfps/cpp/vorticity_equation.cpp
with
6 additions
and
6 deletions
bfps/cpp/field.hpp
+
3
−
3
View file @
2ecf4819
...
...
@@ -266,9 +266,9 @@ class field
}
ptrdiff_t
get_rindex_from_global
(
const
ptrdiff_t
in_global_x
,
const
ptrdiff_t
in_global_y
,
const
ptrdiff_t
in_global_z
)
const
{
assert
(
in_global_x
>=
0
&&
in_global_x
<
this
->
rlayout
->
sizes
[
2
]);
assert
(
in_global_y
>=
0
&&
in_global_y
<
this
->
rlayout
->
sizes
[
1
]);
assert
(
in_global_z
>=
0
&&
in_global_z
<
this
->
rlayout
->
sizes
[
0
]);
assert
(
in_global_x
>=
0
&&
in_global_x
<
ptrdiff_t
(
this
->
rlayout
->
sizes
[
2
])
)
;
assert
(
in_global_y
>=
0
&&
in_global_y
<
ptrdiff_t
(
this
->
rlayout
->
sizes
[
1
])
)
;
assert
(
in_global_z
>=
0
&&
in_global_z
<
ptrdiff_t
(
this
->
rlayout
->
sizes
[
0
])
)
;
return
get_rindex
(
in_global_x
-
this
->
rlayout
->
starts
[
2
],
in_global_y
-
this
->
rlayout
->
starts
[
1
],
in_global_z
-
this
->
rlayout
->
starts
[
0
]);
...
...
...
...
This diff is collapsed.
Click to expand it.
bfps/cpp/field_binary_IO.cpp
+
1
−
1
View file @
2ecf4819
...
...
@@ -49,7 +49,7 @@ field_binary_IO<rnumber, fr, fc>::field_binary_IO(
tsizes
.
resize
(
ndim
(
fc
));
tsubsizes
.
resize
(
ndim
(
fc
));
tstarts
.
resize
(
ndim
(
fc
));
for
(
int
i
=
0
;
i
<
ndim
(
fc
);
i
++
)
for
(
int
i
=
0
;
i
<
int
(
ndim
(
fc
)
)
;
i
++
)
{
tsizes
[
i
]
=
int
(
this
->
sizes
[
i
]);
tsubsizes
[
i
]
=
int
(
this
->
subsizes
[
i
]);
...
...
...
...
This diff is collapsed.
Click to expand it.
bfps/cpp/kspace.cpp
+
1
−
1
View file @
2ecf4819
...
...
@@ -186,7 +186,7 @@ int kspace<be, dt>::store(hid_t stat_file)
space
=
H5Dget_space
(
dset
);
H5Sget_simple_extent_dims
(
space
,
dims
,
NULL
);
H5Sclose
(
space
);
if
(
this
->
nshells
!=
dims
[
0
])
if
(
this
->
nshells
!=
int
(
dims
[
0
])
)
{
DEBUG_MSG
(
"ERROR: computed nshells %d not equal to data file nshells %d
\n
"
,
...
...
...
...
This diff is collapsed.
Click to expand it.
bfps/cpp/vorticity_equation.cpp
+
1
−
1
View file @
2ecf4819
...
...
@@ -75,7 +75,7 @@ void vorticity_equation<rnumber, be>::update_checkpoint()
H5P_DEFAULT
);
H5Gclose
(
group_id
);
H5Fclose
(
fid
);
if
((
fields_stored
>=
this
->
checkpoints_per_file
)
&&
if
((
int
(
fields_stored
)
>=
this
->
checkpoints_per_file
)
&&
!
dset_exists
)
this
->
checkpoint
++
;
}
...
...
...
...
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
sign in
to comment