convert_to_new_pgrid Subroutine

private subroutine convert_to_new_pgrid(mp_comm_cart, matrix_in, matrix_out, move_data, nodata, optimize_pgrid)

Convert a DBCSR matrix to a new process grid

Arguments

Type IntentOptional Attributes Name
type(mp_comm_type), intent(in) :: mp_comm_cart

new process grid

type(dbcsr_type), intent(inout) :: matrix_in
type(dbcsr_type), intent(out) :: matrix_out
logical, intent(in), optional :: move_data

memory optimization: move data such that matrix_in is empty on return. Data of matrix_in should not be copied to matrix_out

logical, intent(in), optional :: nodata

memory optimization: move data such that matrix_in is empty on return. Data of matrix_in should not be copied to matrix_out

logical, intent(in), optional :: optimize_pgrid

Whether to change process grid