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
adcf15b4
Commit
adcf15b4
authored
Jun 16, 2016
by
LAMBERT Jean-charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add assert to trap error
parent
b34e9a25
Pipeline
#292
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/camr.cc
src/camr.cc
+4
-1
No files found.
src/camr.cc
View file @
adcf15b4
...
...
@@ -332,7 +332,10 @@ template <class T> int CAmr::loadData(uns::CParticles<T> * particles,
for
(
int
ind
=
0
;
ind
<
twotondim
;
ind
++
)
{
for
(
int
ivar
=
0
;
ivar
<
nvarg
;
ivar
++
)
{
if
(
j
==
icpu
&&
ngrida
>
0
)
{
grav
.
readDataBlock
((
char
*
)
&
varg
[
ivar
*
ngrida
*
twotondim
+
ind
*
ngrida
]);
int
n
=
grav
.
readDataBlock
((
char
*
)
&
varg
[
ivar
*
ngrida
*
twotondim
+
ind
*
ngrida
]);
//std::cerr << "n="<<n<<"\n";
assert
(
n
==
ngrida
*
8
);
}
else
grav
.
skipBlock
();
}
...
...
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