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
db43eae9
Commit
db43eae9
authored
7 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Make sure we dump cells for any particles and avoid a possible issue with increment timing.
parent
044bce3e
No related branches found
No related tags found
1 merge request
!395
Make the expected number of tasks per cell a parameter.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/debug.c
+3
-3
3 additions, 3 deletions
src/debug.c
with
3 additions
and
3 deletions
src/debug.c
+
3
−
3
View file @
db43eae9
...
...
@@ -300,7 +300,7 @@ static void dumpCells_map(struct cell *c, void *data) {
#endif
/* Only locally active cells are dumped. */
if
(
c
->
count
>
0
)
if
(
c
->
count
>
0
||
c
->
gcount
>
0
||
c
->
scount
>
0
)
fprintf
(
file
,
" %6.3f %6.3f %6.3f %6.3f %6.3f %6.3f %6d %6d %6d %6d "
"%6.1f %20lld %6d %6d %6d %6d
\n
"
,
...
...
@@ -324,8 +324,8 @@ void dumpCells(const char *prefix, struct space *s) {
/* Name of output file. */
static
int
nseq
=
0
;
char
fname
[
200
];
sprintf
(
fname
,
"%s_%03d.dat"
,
prefix
,
nseq
);
atomic_inc
(
&
nse
q
);
int
uniq
=
atomic_inc
(
&
nseq
);
sprintf
(
fname
,
"%s_%03d.dat"
,
prefix
,
uni
q
);
file
=
fopen
(
fname
,
"w"
);
...
...
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