Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
infrastructure
unsio
Commits
b34e9a25
Commit
b34e9a25
authored
Jun 16, 2016
by
LAMBERT Jean-charles
Browse files
ramses garvity
parent
8a7ee0e3
Pipeline
#289
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/camr.cc
View file @
b34e9a25
...
...
@@ -412,8 +412,8 @@ template <class T> int CAmr::loadData(uns::CParticles<T> * particles,
if
(
nvarg
==
ndim
+
1
)
{
// there is pot/ax/ay/az
offset
=
1
;
// shift to ax
}
for
(
int
k
=
0
;
k
<
nvarg
;
k
++
)
{
particles
->
acc
.
push_back
(
varg
[
(
offset
+
k
)
*
ngrida
*
twotondim
+
ind
*
ngrida
+
i
]);
for
(
int
k
=
offset
;
k
<
nvarg
;
k
++
)
{
particles
->
acc
.
push_back
(
varg
[
k
*
ngrida
*
twotondim
+
ind
*
ngrida
+
i
]);
}
if
(
ndim
<
3
)
{
// ndim = 2 , set az=0.0
particles
->
acc
.
push_back
(
0.0
);
...
...
Write
Preview
Supports
Markdown
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