PLUTO  4.4-patch2
Functions
al_write_array_async.c File Reference

ArrayLib routines for asynchronous MPI-IO. More...

#include "al_hidden.h"
#include <string.h>

Functions

int AL_Write_array_begin (void *va, int sz_ptr, int *output_stag, int *output_dump, int output_nvar)
 
int AL_Write_array_end (void *va, int sz_ptr)
 

Detailed Description

ArrayLib routines for asynchronous MPI-IO

Authors
G. Muscianisi (g.mus.nosp@m.cian.nosp@m.isi@c.nosp@m.inec.nosp@m.a.it)
Date
Feb 28, 2012

Function Documentation

◆ AL_Write_array_begin()

int AL_Write_array_begin ( void *  va,
int  sz_ptr,
int *  output_stag,
int *  output_dump,
int  output_nvar 
)

Write a distributed array to a parallel file by using asynchronous MPI-IO

Parameters
[in]bufferpointer to the buffer to write
[in]sz_ptrinteger pointer to the distributed array descriptor
[in]output_stagvector sets to -1 for centred variables, and sets to 0,1,2 for staggered field in the x,y,z direction
[in]output_dumpvector sets to 1 if the variable has to be dumped, 0 in the contrary case
[in]output_nvartotal number of variables in PLUTO simulation

◆ AL_Write_array_end()

int AL_Write_array_end ( void *  va,
int  sz_ptr 
)

Completition of writing of a distributed array to a parallel file by using asynchronous MPI-IO

Parameters
[in]bufferpointer to the buffer to write
[in]sz_ptrinteger pointer to the distributed array descriptor