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
Merge requests
!367
Remove 8-cell limit in gravity + non periodic case
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove 8-cell limit in gravity + non periodic case
remove_cell_lim
into
master
Overview
1
Commits
2
Changes
1
Merged
Loic Hausammann
requested to merge
remove_cell_lim
into
master
7 years ago
Overview
1
Commits
2
Changes
-
Expand
Fix issue
#323 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
dc8ac647
2 commits,
7 years ago
+
13
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/space.c
+
13
−
5
Options
@@ -314,14 +314,22 @@ void space_regrid(struct space *s, int verbose) {
"small,
\n
"
" - the (minimal) time-step is too large leading to particles with "
"predicted smoothing lengths too large for the box size,
\n
"
" - particle with velocities so large that they move by more than two "
" - particle
s
with velocities so large that they move by more than two "
"box sizes per time-step.
\n
"
);
/* Check if we have enough cells for gravity. */
if
(
s
->
gravity
&&
(
cdim
[
0
]
<
8
||
cdim
[
1
]
<
8
||
cdim
[
2
]
<
8
))
/* Check if we have enough cells for
periodic
gravity. */
if
(
s
->
gravity
&&
s
->
periodic
&&
(
cdim
[
0
]
<
8
||
cdim
[
1
]
<
8
||
cdim
[
2
]
<
8
))
error
(
"Must have at least 8 cells in each spatial dimension when gravity "
"is switched on."
);
"Must have at least 8 cells in each spatial dimension when periodic "
"gravity is switched on.
\n
This error is often caused by any of the "
"followings:
\n
"
" - too few particles to generate a sensible grid,
\n
"
" - the initial value of 'Scheduler:max_top_level_cells' is too "
"small,
\n
"
" - the (minimal) time-step is too large leading to particles with "
"predicted smoothing lengths too large for the box size,
\n
"
" - particles with velocities so large that they move by more than two "
"box sizes per time-step.
\n
"
);
/* In MPI-Land, changing the top-level cell size requires that the
* global partition is recomputed and the particles redistributed.
Loading