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

« back to all changes in this revision

Viewing changes to src/core/common_adios.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:
157
157
    fd_p->write_size_bytes = 0;
158
158
    fd_p->base_offset = 0;
159
159
    fd_p->pg_start_in_file = 0;
 
160
    if (comm != MPI_COMM_NULL)
 
161
        MPI_Comm_dup(comm, &fd_p->comm);
 
162
    else
 
163
        fd_p->comm = MPI_COMM_NULL;
160
164
 
161
165
#ifdef SKEL_TIMING
162
166
    fd_p->timing_obj = 0;
201
205
           )
202
206
        {
203
207
            adios_transports [methods->method->m].adios_open_fn
204
 
                                                 (fd_p, methods->method, comm);
 
208
                                                 (fd_p, methods->method, fd_p->comm);
205
209
        }
206
210
 
207
211
        methods = methods->next;
218
222
///////////////////////////////////////////////////////////////////////////////
219
223
static const char ADIOS_ATTR_PATH[] = "/__adios__";
220
224
 
221
 
uint32_t pinned_timestep = 0;
 
225
static uint32_t pinned_timestep = 0;
222
226
void adios_pin_timestep(uint32_t ts) {
223
227
  pinned_timestep = ts;
224
228
}
1095
1099
        fd->name = 0;
1096
1100
    }
1097
1101
 
 
1102
    if (fd->comm != MPI_COMM_NULL) {
 
1103
        MPI_Comm_free (&fd->comm);
 
1104
    }
 
1105
 
1098
1106
    free ((void *) fd_p);
1099
1107
#if defined(WITH_NCSU_TIMER) && defined(TIMER_LEVEL) && (TIMER_LEVEL <= 0)
1100
1108
    timer_stop ("adios_close");