PetscMPIDataTypeToPetscDataType — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscMPIDataTypeToPetscDataType

Finds the `PetscDataType` name of a datatype from its `MPI_Datatype`

## Synopsis

    #include "petscsys.h"
    PetscErrorCode PetscMPIDataTypeToPetscDataType(MPI_Datatype mtype, PetscDataType *ptype)

Not Collective

## Input Parameter

- mtype - the MPI datatype (for example `MPI_DOUBLE`, …)

## Output Parameter

- ptype - the PETSc datatype name (for example `PETSC_DOUBLE`)

## See Also

`PetscDataType`

## Level

advanced

## Location

src/sys/objects/ptype.c

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages