Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
19a99afb
Commit
19a99afb
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Documentation fixes
parent
5be506a6
No related branches found
No related tags found
1 merge request
!118
One major change to replace all gpart id/parts with the new id_or_neg_offset.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/debug.c
+1
-2
1 addition, 2 deletions
src/debug.c
src/part.c
+3
-3
3 additions, 3 deletions
src/part.c
with
4 additions
and
5 deletions
src/debug.c
+
1
−
2
View file @
19a99afb
...
...
@@ -59,7 +59,6 @@
*
* (Should be used for debugging only as it runs in O(N).)
*/
void
printParticle
(
const
struct
part
*
parts
,
struct
xpart
*
xparts
,
long
long
int
id
,
size_t
N
)
{
...
...
@@ -83,6 +82,7 @@ void printParticle(const struct part *parts, struct xpart *xparts,
* the standard output.
*
* @param gparts The array of g-particles.
* @param parts The array of particles.
* @param id The id too look for.
* @param N The size of the array of g-particles.
*
...
...
@@ -117,7 +117,6 @@ void printgParticle(const struct gpart *gparts, const struct part *parts,
* @param p The particle to print
* @param xp The extended data ot the particle to print
*/
void
printParticle_single
(
const
struct
part
*
p
,
const
struct
xpart
*
xp
)
{
printf
(
"## Particle: id=%lld"
,
p
->
id
);
...
...
This diff is collapsed.
Click to expand it.
src/part.c
+
3
−
3
View file @
19a99afb
...
...
@@ -30,11 +30,11 @@
#include
"part.h"
/**
* @brief Re-link the #gparts associated with the list of #parts.
* @brief Re-link the #gpart
%
s associated with the list of #part
%
s.
*
* @param parts The list of #part.
* @param N The number of particles to re-link;
* @param offset The offset of #parts relative to the global parts list.
* @param offset The offset of #part
%
s relative to the global parts list.
*/
void
part_relink_gparts
(
struct
part
*
parts
,
size_t
N
,
ptrdiff_t
offset
)
{
for
(
size_t
k
=
0
;
k
<
N
;
k
++
)
{
...
...
@@ -45,7 +45,7 @@ void part_relink_gparts(struct part *parts, size_t N, ptrdiff_t offset) {
}
/**
* @brief Re-link the #gparts associated with the list of #parts.
* @brief Re-link the #gpart
%
s associated with the list of #part
%
s.
*
* @param gparts The list of #gpart.
* @param N The number of particles to re-link;
...
...
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
register
or
sign in
to comment