ASCOT5
Toggle main menu visibility
Loading...
Searching...
No Matches
mpi_interface.h
Go to the documentation of this file.
1
5
#ifndef MPI_INTERFACE_H
6
#define MPI_INTERFACE_H
7
8
#ifdef MPI
9
#include <mpi.h>
10
#endif
11
#include "
diag.h
"
12
#include "
particle.h
"
13
15
#define mpi_type_integer MPI_LONG
17
#define mpi_type_real MPI_DOUBLE
19
#define mpi_type_a5err MPI_UNSIGNED_LONG_LONG
20
21
void
mpi_interface_barrier
();
22
void
mpi_interface_init
(
int
argc,
char
** argv,
int
* mpi_rank,
int
* mpi_size,
23
int
* mpi_root);
24
void
mpi_interface_finalize
(
int
err);
25
void
mpi_my_particles
(
int
* start_index,
int
* n,
int
ntotal,
int
mpi_rank,
26
int
mpi_size);
27
void
mpi_gather_particlestate
(
particle_state
* ps,
particle_state
** psgathered,
28
int
* ngathered,
int
ntotal,
int
mpi_rank,
29
int
mpi_size,
int
mpi_root);
30
void
mpi_gather_particlestate
(
31
particle_state
* ps,
particle_state
** ps_gather,
int
* n_gather,
int
n_tot,
32
int
mpi_rank,
int
mpi_size,
int
mpi_root);
33
void
mpi_gather_diag
(
diag_data
* data,
int
ntotal,
int
mpi_rank,
int
mpi_size,
34
int
mpi_root);
35
36
#endif
diag.h
Header file for diag.c.
mpi_gather_diag
void mpi_gather_diag(diag_data *data, int ntotal, int mpi_rank, int mpi_size, int mpi_root)
Gather all diagnostics to the root process.
Definition
mpi_interface.c:296
mpi_my_particles
void mpi_my_particles(int *start_index, int *n, int n_tot, int mpi_rank, int mpi_size)
Divide markers to mpi processes.
Definition
mpi_interface.c:92
mpi_interface_init
void mpi_interface_init(int argc, char **argv, int *mpi_rank, int *mpi_size, int *mpi_root)
Initialize MPI.
Definition
mpi_interface.c:30
mpi_interface_finalize
void mpi_interface_finalize(int err)
Finalize MPI.
Definition
mpi_interface.c:58
mpi_interface_barrier
void mpi_interface_barrier()
Wait until all processes have reached this routine.
Definition
mpi_interface.c:74
mpi_gather_particlestate
void mpi_gather_particlestate(particle_state *ps, particle_state **ps_gather, int *n_gather, int n_tot, int mpi_rank, int mpi_size, int mpi_root)
Gather all particle states to the root process.
Definition
mpi_interface.c:122
particle.h
Header file for particle.c.
diag_data
Diagnostics data struct.
Definition
diag.h:21
particle_state
General representation of a marker.
Definition
particle.h:40
Generated on
for ASCOT5 by
1.18.0