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
dc8ac647
Commit
dc8ac647
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Improve error message displayed when too few cells are available for the top-level FFT grid.
parent
2731fd75
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!367
Remove 8-cell limit in gravity + non periodic case
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/space.c
+5
-5
5 additions, 5 deletions
src/space.c
with
5 additions
and
5 deletions
src/space.c
+
5
−
5
View file @
dc8ac647
...
@@ -314,21 +314,21 @@ void space_regrid(struct space *s, int verbose) {
...
@@ -314,21 +314,21 @@ void space_regrid(struct space *s, int verbose) {
"small,
\n
"
"small,
\n
"
" - the (minimal) time-step is too large leading to particles with "
" - the (minimal) time-step is too large leading to particles with "
"predicted smoothing lengths too large for the box size,
\n
"
"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
"
);
"box sizes per time-step.
\n
"
);
/* Check if we have enough cells for gravity. */
/* Check if we have enough cells for
periodic
gravity. */
if
(
s
->
gravity
&&
s
->
periodic
&&
(
cdim
[
0
]
<
8
||
cdim
[
1
]
<
8
||
cdim
[
2
]
<
8
))
if
(
s
->
gravity
&&
s
->
periodic
&&
(
cdim
[
0
]
<
8
||
cdim
[
1
]
<
8
||
cdim
[
2
]
<
8
))
error
(
error
(
"Must have at least 8 cells in each spatial dimension when
gravity
"
"Must have at least 8 cells in each spatial dimension when
periodic
"
"is switched on.
\n
This error is often caused by any of the "
"
gravity
is switched on.
\n
This error is often caused by any of the "
"followings:
\n
"
"followings:
\n
"
" - too few particles to generate a sensible grid,
\n
"
" - too few particles to generate a sensible grid,
\n
"
" - the initial value of 'Scheduler:max_top_level_cells' is too "
" - the initial value of 'Scheduler:max_top_level_cells' is too "
"small,
\n
"
"small,
\n
"
" - the (minimal) time-step is too large leading to particles with "
" - the (minimal) time-step is too large leading to particles with "
"predicted smoothing lengths too large for the box size,
\n
"
"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
"
);
"box sizes per time-step.
\n
"
);
/* In MPI-Land, changing the top-level cell size requires that the
/* In MPI-Land, changing the top-level cell size requires that the
...
...
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