|
1 | 1 | """
|
2 |
| - MPI.Errhandler |
| 2 | + MPI.ErrorHandler |
3 | 3 |
|
4 | 4 | An MPI error handler object. Currently only two are supported:
|
5 | 5 |
|
@@ -31,56 +31,56 @@ function free(errh::Errhandler)
|
31 | 31 | return nothing
|
32 | 32 | end
|
33 | 33 |
|
34 |
| -function set_default_error_handler_return() |
35 |
| - set_errorhandler!(COMM_SELF, ERRORS_RETURN) |
36 |
| - set_errorhandler!(COMM_WORLD, ERRORS_RETURN) |
| 34 | +function set_default_errhandler_return() |
| 35 | + set_errhandler!(COMM_SELF, ERRORS_RETURN) |
| 36 | + set_errhandler!(COMM_WORLD, ERRORS_RETURN) |
37 | 37 | end
|
38 | 38 |
|
39 | 39 | """
|
40 |
| - MPI.get_errorhandler(comm::MPI.Comm) |
41 |
| - MPI.get_errorhandler(win::MPI.Win) |
42 |
| - MPI.get_errorhandler(file::MPI.File.FileHandle) |
| 40 | + MPI.get_errhandler(comm::MPI.Comm) |
| 41 | + MPI.get_errhandler(win::MPI.Win) |
| 42 | + MPI.get_errhandler(file::MPI.File.FileHandle) |
43 | 43 |
|
44 | 44 | Get the current [`Errhandler`](@ref) for the relevant MPI object.
|
45 | 45 |
|
46 | 46 | # See also
|
47 |
| -- [`set_errorhandler!`](@ref) |
| 47 | +- [`set_errhandler!`](@ref) |
48 | 48 | """
|
49 |
| -function get_errorhandler(comm::Comm) |
| 49 | +function get_errhandler(comm::Comm) |
50 | 50 | errh = Errhandler()
|
51 | 51 | @mpichk ccall((:MPI_Comm_get_errhandler, libmpi), Cint, (MPI_Comm, Ptr{MPI_Errhandler}), comm, errh)
|
52 | 52 | return errh
|
53 | 53 | end
|
54 |
| -function get_errorhandler(win::Win) |
| 54 | +function get_errhandler(win::Win) |
55 | 55 | errh = Errhandler()
|
56 | 56 | @mpichk ccall((:MPI_Win_get_errhandler, libmpi), Cint, (MPI_Win, Ptr{MPI_Errhandler}), win, errh)
|
57 | 57 | return errh
|
58 | 58 | end
|
59 |
| -function get_errorhandler(file::File.FileHandle) |
| 59 | +function get_errhandler(file::File.FileHandle) |
60 | 60 | errh = Errhandler()
|
61 | 61 | @mpichk ccall((:MPI_File_get_errhandler, libmpi), Cint, (MPI_File, Ptr{MPI_Errhandler}), file, errh)
|
62 | 62 | return errh
|
63 | 63 | end
|
64 | 64 |
|
65 | 65 | """
|
66 |
| - MPI.set_errorhandler!(comm::MPI.Comm, errh::Errhandler) |
67 |
| - MPI.set_errorhandler!(win::MPI.Win, errh::Errhandler) |
68 |
| - MPI.set_errorhandler!(file::MPI.File.FileHandle, errh::Errhandler) |
| 66 | + MPI.set_errhandler!(comm::MPI.Comm, errh::Errhandler) |
| 67 | + MPI.set_errhandler!(win::MPI.Win, errh::Errhandler) |
| 68 | + MPI.set_errhandler!(file::MPI.File.FileHandle, errh::Errhandler) |
69 | 69 |
|
70 | 70 | Set the [`Errhandler`](@ref) for the relevant MPI object.
|
71 | 71 |
|
72 | 72 | # See also
|
73 |
| -- [`get_errorhandler`](@ref) |
| 73 | +- [`get_errhandler`](@ref) |
74 | 74 | """
|
75 |
| -function set_errorhandler!(comm::Comm, errh::Errhandler) |
| 75 | +function set_errhandler!(comm::Comm, errh::Errhandler) |
76 | 76 | @mpichk ccall((:MPI_Comm_set_errhandler, libmpi), Cint, (MPI_Comm, MPI_Errhandler), comm, errh)
|
77 | 77 | return nothing
|
78 | 78 | end
|
79 |
| -function set_errorhandler!(win::Win, errh::Errhandler) |
| 79 | +function set_errhandler!(win::Win, errh::Errhandler) |
80 | 80 | @mpichk ccall((:MPI_Win_set_errhandler, libmpi), Cint, (MPI_Win, MPI_Errhandler), win, errh)
|
81 | 81 | return nothing
|
82 | 82 | end
|
83 |
| -function set_errorhandler!(file::File.FileHandle, errh::Errhandler) |
| 83 | +function set_errhandler!(file::File.FileHandle, errh::Errhandler) |
84 | 84 | @mpichk ccall((:MPI_File_set_errhandler, libmpi), Cint, (MPI_File, MPI_Errhandler), file, errh)
|
85 | 85 | return nothing
|
86 | 86 | end
|
|
0 commit comments