PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Functions/Subroutines
mpi_ops Module Reference

Operations related to MPI. More...

Functions/Subroutines

integer function, public start_mpi ()
 Start MPI and gather information. More...
 
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. More...
 
integer function, public abort_mpi ()
 Abort MPI suddenly. More...
 
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, ...). More...
 
subroutine, public sudden_stop (ierr)
 Suddenly stops the computations, aborting MPI, etc. More...
 

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 227 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 247 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 22 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 81 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 483 of file MPI_ops.f90.

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