---
name: "PGABuildDatatype"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGABuildDatatype"
---

# PGABuildDatatype(3)

Build an MPI datatype for string p in population pop.

## NAME

PGABuildDatatype - Build an MPI datatype for string p in population pop.

## INPUT PARAMETERS

- ctx

  \- context variable

- p

  \- index of an individual

- pop

  \- symbolic constant of the population

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
MPI_Datatype  PGABuildDatatype(ctx, p, pop)
PGAContext *ctx
int p
int pop
```

## LOCATION

parallel.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int p;
MPI_Datatype dt;
:
dt = PGABuildDatatype(ctx, p, PGA_NEWPOP);
```
