2
* ADIOS is freely available under the terms of the BSD license described
3
* in the COPYING file in the top level directory of this source distribution.
5
* Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved.
12
#include "public/adios_types.h"
13
#include "core/adios_internals.h"
15
/* Write functions for ADIOS
17
* Used by the write C api (adios.c) and Fortran api (adiosf.c)
20
// Global setup using the XML file
21
int common_adios_init (const char * config, MPI_Comm comm);
23
// setup, but all XML file pieces will be provided by another series of calls
24
// yet to be worked out
26
int common_adios_init_noxml (MPI_Comm comm);
28
int common_adios_finalize (int mype);
30
int common_adios_allocate_buffer (enum ADIOS_BUFFER_ALLOC_WHEN adios_buffer_alloc_when
31
,uint64_t buffer_size);
33
// end user calls for each I/O operation
34
// modes = "r" = "read", "w" = "write", "a" = "append", "u" = "update"
35
int common_adios_open (int64_t * fd, const char * group_name, const char * name
36
,const char * mode, MPI_Comm comm
39
int common_adios_group_size (int64_t fd_p, uint64_t data_size
40
,uint64_t * total_size
43
//int common_adios_write (int64_t fd_p, const char * name, void * var);
44
int common_adios_write (struct adios_file_struct * fd, struct adios_var_struct * v, void * var);
46
int common_adios_get_write_buffer (int64_t fd_p, const char * name
51
int common_adios_read (int64_t fd_p, const char * name, void * buffer
55
int common_adios_set_path (int64_t fd_p, const char * path);
57
int common_adios_set_path_var (int64_t fd_p, const char * path, const char * name);
59
int common_adios_end_iteration (void);
61
int common_adios_start_calculation (void);
63
int common_adios_stop_calculation (void);
65
int common_adios_close (int64_t fd_p);