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
fa1c714d
Commit
fa1c714d
authored
10 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
die in an MPI-conformant way when running with MPI.
Former-commit-id: 600e09db0adf4742d48ed3ea66caaaec8a2d52cc
parent
10025b12
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/error.h
+1
-1
1 addition, 1 deletion
src/error.h
src/units.c
+3
-0
3 additions, 0 deletions
src/units.c
with
4 additions
and
1 deletion
src/error.h
+
1
−
1
View file @
fa1c714d
...
...
@@ -27,7 +27,7 @@
*/
#ifdef WITH_MPI
extern
int
engine_rank
;
#define error(s, ...) { fprintf( stderr , "[%03i] %s:%s():%i: " s "\n" , engine_rank , __FILE__ , __FUNCTION__ , __LINE__ , ##__VA_ARGS__ );
abort(
); }
#define error(s, ...) { fprintf( stderr , "[%03i] %s:%s():%i: " s "\n" , engine_rank , __FILE__ , __FUNCTION__ , __LINE__ , ##__VA_ARGS__ );
MPI_Abort(MPI_COMM_WORLD, -1
); }
#else
#define error(s, ...) { fprintf( stderr , "%s:%s():%i: " s "\n" , __FILE__ , __FUNCTION__ , __LINE__ , ##__VA_ARGS__ ); abort(); }
#endif
...
...
This diff is collapsed.
Click to expand it.
src/units.c
+
3
−
0
View file @
fa1c714d
...
...
@@ -27,6 +27,9 @@
#include
<string.h>
#include
<stddef.h>
#include
<math.h>
#ifdef WITH_MPI
#include
<mpi.h>
#endif
#include
"const.h"
#include
"cycle.h"
...
...
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