~ubuntu-branches/ubuntu/utopic/adios/utopic

« back to all changes in this revision

Viewing changes to src/core/common_adios.h

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2013-12-09 15:21:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131209152131-jtd4fpmdv3xnunnm
Tags: 1.5.0-1
* New upstream.
* Standards-Version: 3.9.5
* Include latest config.{sub,guess} 
* New watch file.
* Create libadios-bin for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
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.
 
4
 *
 
5
 * Copyright (c) 2008 - 2009.  UT-BATTELLE, LLC. All rights reserved.
 
6
 */
 
7
 
 
8
#ifndef COMMON_ADIOS_H
 
9
#define COMMON_ADIOS_H
 
10
 
 
11
#include <stdint.h>
 
12
#include "public/adios_types.h"
 
13
#include "core/adios_internals.h"
 
14
 
 
15
/* Write functions for ADIOS
 
16
 *
 
17
 * Used by the write C api (adios.c) and Fortran api (adiosf.c)
 
18
 */
 
19
 
 
20
// Global setup using the XML file
 
21
int common_adios_init (const char * config, MPI_Comm comm);
 
22
 
 
23
// setup, but all XML file pieces will be provided by another series of calls
 
24
// yet to be worked out
 
25
// TODO
 
26
int common_adios_init_noxml (MPI_Comm comm);
 
27
 
 
28
int common_adios_finalize (int mype);
 
29
 
 
30
int common_adios_allocate_buffer (enum ADIOS_BUFFER_ALLOC_WHEN adios_buffer_alloc_when
 
31
                                 ,uint64_t buffer_size);
 
32
 
 
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
 
37
               );
 
38
 
 
39
int common_adios_group_size (int64_t fd_p, uint64_t data_size
 
40
                     ,uint64_t * total_size
 
41
                     );
 
42
 
 
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);
 
45
 
 
46
int common_adios_get_write_buffer (int64_t fd_p, const char * name
 
47
                           ,uint64_t * size
 
48
                           ,void ** buffer
 
49
                           );
 
50
 
 
51
int common_adios_read (int64_t fd_p, const char * name, void * buffer
 
52
               ,uint64_t buffer_size
 
53
               );
 
54
 
 
55
int common_adios_set_path (int64_t fd_p, const char * path);
 
56
 
 
57
int common_adios_set_path_var (int64_t fd_p, const char * path, const char * name);
 
58
 
 
59
int common_adios_end_iteration (void);
 
60
 
 
61
int common_adios_start_calculation (void);
 
62
 
 
63
int common_adios_stop_calculation (void);
 
64
 
 
65
int common_adios_close (int64_t fd_p);
 
66
 
 
67
#endif