~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/io/Checkpoint.cpp

  • Committer: Niclas Jansson
  • Date: 2011-06-27 08:04:27 UTC
  • Revision ID: njansson@csc.kth.se-20110627080427-fowe8ezwqophypc2
Fixed offset problem

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// Licensed under the GNU LGPL Version 2.1.
3
3
//
4
4
// First added:  2009-09-09
5
 
// Last changed: 2011-04-19
 
5
// Last changed: 2011-06-27
6
6
 
7
7
#include <cstring>
8
8
#include <sstream>
348
348
#ifdef ENABLE_MPIIO
349
349
    MPI_File_read_at_all(in, byte_offset + vector_offset[0] * sizeof(real),
350
350
                         values, vector_offset[1], MPI_DOUBLE, MPI_STATUS_IGNORE);
351
 
    byte_offset += vector_offset[3] * sizeof(double);
 
351
    byte_offset += vector_offset[2] * sizeof(double);
352
352
#else
353
353
    in.read((char *)values, local_size * sizeof(real));
354
354
#endif