pnet_dup(3)

NAME
pnet_dup - Duplicate network

SYNOPSIS
#include <mpi.h>
#include "pnet.h"
Pnet *pnet_dup(const Pnet *net);

DESCRIPTION
Function copies network stored in Pnet struct. Must be called before pnet_setup. The argument of pnet_dup is:

pnet
    Pointer to Pnet struct to be copied.

RETURN VALUE
Upon successful completion of pnet_dup a pointer to copied Pnet struct is returned. Otherwise NULL is returned.

AUTHOR
Werner von Bloh (bloh@pik-potsdam.de)

SEE ALSO
pnet_free(3), pnet_setup(3)