~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/C/flexpath_tests/maya_append/reader.c

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include "adios_read.h"
12
12
 
13
13
#include "misc.h"
 
14
#include "utils.h"
14
15
#include "test_common.h"
15
16
#include "cfg.h"
16
17
 
24
25
 * @param out_buf  The output buffer
25
26
 */
26
27
#define READ_FULLPATH(attribute, grid_func_name, out_buf) \
 
28
        char fullpath[STR_BUFFER_SIZE]; \
27
29
        sprintf(fullpath, "%s%s", attribute, grid_func_name);  \
28
30
        SET_ERROR_IF_NOT_ZERO(adios_schedule_read(adios_handle, sel, fullpath,0,10, out_buf), error_counts.adios);
29
31
 
32
34
#define STR_BUFFER_SIZE 100
33
35
 
34
36
int main (int argc, char **argv){
35
 
        int rank =0, size =0;
 
37
        int rank =0;
36
38
        MPI_Comm comm = MPI_COMM_WORLD;
37
39
        struct err_counts err = {0, 0};
38
40
        struct test_info test_result = {TEST_PASSED, "maya_append"};
68
70
        memset(cctk_bbox, 0, sizeof(int) * TIMESTEP_COUNT*6);
69
71
        memset(data, 0, sizeof(double) * 11* 12*13 * TIMESTEP_COUNT);
70
72
 
71
 
        char fullpath[STR_BUFFER_SIZE];
72
 
 
73
73
        // selection should be NULL or as a single variable
74
74
        // just say that you want to take different steps
75
75
        adios_schedule_read(adios_handle, NULL, "/level/maya_gf_var",0,10, level);