# PetscDataTypeToADIOSDataType
Converts the PETSc name of a datatype to its ADIOS name. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscDataTypeToADIOSDataType(PetscDataType ptype, enum ADIOS_DATATYPES *htype)
```
Not collective


## Input Parameter

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



## Output Parameter

- ***mtype -*** the ADIOS datatype (for example MPI_DOUBLE, ...)





## See Also
 `PetscDataType`, `PetscADIOSDataTypeToPetscDataType()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/impls/adios/adios.c.html#PetscDataTypeToADIOSDataType">src/sys/classes/viewer/impls/adios/adios.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/impls/adios/adios.c)


[Index of all Viewer routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
