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
3bedd654
Commit
3bedd654
authored
7 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
formatting
parent
3f0c1c31
No related branches found
No related tags found
1 merge request
!362
Better trigger
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/main.c
+1
-1
1 addition, 1 deletion
examples/main.c
src/partition.c
+3
-2
3 additions, 2 deletions
src/partition.c
with
4 additions
and
3 deletions
examples/main.c
+
1
−
1
View file @
3bedd654
...
...
@@ -140,7 +140,7 @@ int main(int argc, char *argv[]) {
error
(
"Call to MPI_Comm_set_errhandler failed with error %i."
,
res
);
if
(
myrank
==
0
)
printf
(
"[0000] [00000.0] main: MPI is up and running with %i node(s).
\n\n
"
,
nr_nodes
);
nr_nodes
);
if
(
nr_nodes
==
1
)
{
message
(
"WARNING: you are running with one MPI rank."
);
message
(
"WARNING: you should use the non-MPI version of this program."
);
...
...
This diff is collapsed.
Click to expand it.
src/partition.c
+
3
−
2
View file @
3bedd654
...
...
@@ -1071,8 +1071,9 @@ void partition_init(struct partition *partition,
if
(
repartition
->
trigger
<=
0
)
error
(
"Invalid DomainDecomposition:trigger, must be greater than zero"
);
if
(
repartition
->
trigger
<
2
&&
repartition
->
trigger
>=
1
)
error
(
"Invalid DomainDecomposition:trigger, must be 2 or greater or less"
" than 1"
);
error
(
"Invalid DomainDecomposition:trigger, must be 2 or greater or less"
" than 1"
);
/* Fraction of particles that should be updated before a repartition
* based on CPU time is considered. */
...
...
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