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
0ae4142c
Commit
0ae4142c
authored
5 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
Remove debugging output messages
parent
351b53fd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+0
-4
0 additions, 4 deletions
src/engine.c
with
0 additions
and
4 deletions
src/engine.c
+
0
−
4
View file @
0ae4142c
...
...
@@ -595,7 +595,6 @@ void engine_exchange_strays(struct engine *e, const size_t offset_parts,
/* Reallocate the particle arrays if necessary */
if
(
offset_parts
+
count_parts_in
>
s
->
size_parts
)
{
message
(
"re-allocating parts array."
);
s
->
size_parts
=
(
offset_parts
+
count_parts_in
)
*
engine_parts_size_grow
;
struct
part
*
parts_new
=
NULL
;
struct
xpart
*
xparts_new
=
NULL
;
...
...
@@ -620,7 +619,6 @@ void engine_exchange_strays(struct engine *e, const size_t offset_parts,
}
if
(
offset_sparts
+
count_sparts_in
>
s
->
size_sparts
)
{
message
(
"re-allocating sparts array."
);
s
->
size_sparts
=
(
offset_sparts
+
count_sparts_in
)
*
engine_parts_size_grow
;
struct
spart
*
sparts_new
=
NULL
;
if
(
swift_memalign
(
"sparts"
,
(
void
**
)
&
sparts_new
,
spart_align
,
...
...
@@ -639,7 +637,6 @@ void engine_exchange_strays(struct engine *e, const size_t offset_parts,
}
if
(
offset_bparts
+
count_bparts_in
>
s
->
size_bparts
)
{
message
(
"re-allocating bparts array."
);
s
->
size_bparts
=
(
offset_bparts
+
count_bparts_in
)
*
engine_parts_size_grow
;
struct
bpart
*
bparts_new
=
NULL
;
if
(
swift_memalign
(
"bparts"
,
(
void
**
)
&
bparts_new
,
bpart_align
,
...
...
@@ -658,7 +655,6 @@ void engine_exchange_strays(struct engine *e, const size_t offset_parts,
}
if
(
offset_gparts
+
count_gparts_in
>
s
->
size_gparts
)
{
message
(
"re-allocating gparts array."
);
s
->
size_gparts
=
(
offset_gparts
+
count_gparts_in
)
*
engine_parts_size_grow
;
struct
gpart
*
gparts_new
=
NULL
;
if
(
swift_memalign
(
"gparts"
,
(
void
**
)
&
gparts_new
,
gpart_align
,
...
...
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