PB3D [2.47]
Ideal linear high-n MHD stability in 3-D
Loading...
Searching...
No Matches
mpi_ops Module Reference

Operations related to MPI. More...

Functions/Subroutines

integer function, public start_mpi ()
 Start MPI and gather information.
integer function, public stop_mpi (grid_eq, grid_eq_b, grid_x, grid_x_b, grid_sol, eq_1, eq_2, x_1, x_2, vac, sol)
 Stop MPI.
integer function, public abort_mpi ()
 Abort MPI suddenly.
integer function, public broadcast_input_opts ()
 Broadcasts options (e.g. user-prescribed) that are not passed through the HDF5 output file (i.e. ltest, no_plots, ...).
subroutine, public sudden_stop (ierr)
 Suddenly stops the computations, aborting MPI, etc.

Detailed Description

Operations related to MPI.

Function/Subroutine Documentation

◆ abort_mpi()

integer function, public mpi_ops::abort_mpi

Abort MPI suddenly.

Returns
ierr

Definition at line 226 of file MPI_ops.f90.

Here is the caller graph for this function:

◆ broadcast_input_opts()

integer function, public mpi_ops::broadcast_input_opts

Broadcasts options (e.g. user-prescribed) that are not passed through the HDF5 output file (i.e. ltest, no_plots, ...).

See also
read_input_opts()
Note
Some variables (e.g. eq_style, ...) are not passed over MPI. Every process should call its own reconstruct_pb3d_in() in order to obtain them.
Returns
ierr

Definition at line 246 of file MPI_ops.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start_mpi()

integer function, public mpi_ops::start_mpi

Start MPI and gather information.

Returns
ierr

Definition at line 21 of file MPI_ops.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop_mpi()

integer function, public mpi_ops::stop_mpi ( type(grid_type), intent(inout), optional grid_eq,
type(grid_type), intent(inout), optional, pointer grid_eq_b,
type(grid_type), intent(inout), optional grid_x,
type(grid_type), intent(inout), optional, pointer grid_x_b,
type(grid_type), intent(inout), optional grid_sol,
type(eq_1_type), intent(inout), optional eq_1,
type(eq_2_type), intent(inout), optional eq_2,
type(x_1_type), intent(inout), optional x_1,
type(x_2_type), intent(inout), optional x_2,
type(vac_type), intent(inout), optional vac,
type(sol_type), intent(inout), optional sol )

Stop MPI.

Also deallocates:

  • grid_eq
  • grid_eq_B
  • grid_X
  • grid_X_B
  • grid_sol
  • eq_1
  • eq_2
  • X_1
  • X_2
  • sol
Returns
ierr
Parameters
[in,out]grid_eqequilibrium grid
[in,out]grid_eq_bfield-aligned equilibrium grid
[in,out]grid_xperturbation grid
[in,out]grid_x_bfield-aligned perturbation grid
[in,out]grid_solsolution grid
[in,out]eq_1Flux equilibrium variables
[in,out]eq_2metric equilibrium variables
[in,out]x_1vectorial perturbation variables
[in,out]x_2integrated tensorial perturbation variables
[in,out]vacvacuum variables
[in,out]solsolution variables

Definition at line 79 of file MPI_ops.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sudden_stop()

subroutine, public mpi_ops::sudden_stop ( integer, intent(in) ierr)

Suddenly stops the computations, aborting MPI, etc.

As a special case, if ierr = 66, no error message is printed.

Returns
ierr

Definition at line 482 of file MPI_ops.f90.

Here is the call graph for this function:
Here is the caller graph for this function: