Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LAMBERT Jean-charles
unsio
Commits
1edac43a
Commit
1edac43a
authored
Sep 30, 2016
by
LAMBERT Jean-charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix clang compilation
parent
a3b3e046
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/camr.cc
src/camr.cc
+1
-4
No files found.
src/camr.cc
View file @
1edac43a
...
...
@@ -544,9 +544,6 @@ bool CAmr::checkGravity(const int ngrida, const int ilevel, const int icpu, int
assert
(
nvarg
==
ndim
);
assert
(
ngrida
>
0
);
// pointer to gridfile
int
(
*
pgf
)[
nlevelmax
][
ncpu
+
nboundary
]
=
(
int
(
*
)[
nlevelmax
][
ncpu
+
nboundary
])
gridfile
;
//double * varg = new double[ngrida*twotondim]; // allocate temporary variable
int
sdouble
=
sizeof
(
double
);
// sizeof double
...
...
@@ -555,7 +552,7 @@ bool CAmr::checkGravity(const int ngrida, const int ilevel, const int icpu, int
try
{
for
(
int
j
=
0
;
j
<
(
nboundary
+
ncpu
);
j
++
)
{
grav
.
skipBlock
(
2
);
if
(
(
*
pgf
)[
ilevel
][
j
]
>
0
)
{
if
(
gridfile
[
ilevel
*
(
ncpu
+
nboundary
)
+
j
]
>
0
)
{
// Read grav variables
for
(
int
ind
=
0
;
ind
<
twotondim
;
ind
++
)
{
for
(
int
ivar
=
0
;
ivar
<
nvarg
;
ivar
++
)
{
...
...
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