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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
5f41901e
Commit
5f41901e
authored
May 27, 2019
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Report the linking length when starting FOF.
parent
63a423e0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!827
Improvement to the stand-alone FOF tool
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fof.c
+6
-0
6 additions, 0 deletions
src/fof.c
with
6 additions
and
0 deletions
src/fof.c
+
6
−
0
View file @
5f41901e
...
@@ -196,8 +196,14 @@ void fof_allocate(const struct space *s, const long long total_nr_DM_particles,
...
@@ -196,8 +196,14 @@ void fof_allocate(const struct space *s, const long long total_nr_DM_particles,
inter-particle sepration? */
inter-particle sepration? */
if
(
props
->
l_x_absolute
!=
-
1
.)
{
if
(
props
->
l_x_absolute
!=
-
1
.)
{
props
->
l_x2
=
props
->
l_x_absolute
*
props
->
l_x_absolute
;
props
->
l_x2
=
props
->
l_x_absolute
*
props
->
l_x_absolute
;
message
(
"Linking length is set to %e [internal units]."
,
props
->
l_x_absolute
);
}
else
{
}
else
{
props
->
l_x2
=
l_x
*
l_x
;
props
->
l_x2
=
l_x
*
l_x
;
message
(
"Linking length is set to %e [internal units] (%f of mean "
"inter-DM-particle separation)."
,
l_x
,
props
->
l_x_ratio
);
}
}
#ifdef WITH_MPI
#ifdef WITH_MPI
...
...
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
sign in
to comment