Ignore:
Timestamp:
Apr 24, 2012, 2:26:14 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
b51c3b
Parents:
e3dbbf
Message:

Fix energy calculation.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1729 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/comm/mpi/datatype.cpp

    re3dbbf r716da7  
    140140  _tag_send = tag_send;
    141141  _tag_recv = tag_receive;
    142   _buffer.resize(_subsizes.Product());
    143142
    144143  if (_type != MPI_DATATYPE_NULL)
     
    157156  _tag_send = tag_send;
    158157  _tag_recv = tag_receive;
    159   _buffer.resize(_subsizes.Product());
    160158
    161159  if (_type != MPI_DATATYPE_NULL)
     
    170168    MPI_Type_create_subarray(3, _sizes.vec(), _subsizes.vec(), _starts.vec(), MPI_ORDER_C, MPI_DOUBLE, &_type);
    171169    MPI_Type_commit(&_type);
     170    if (_alloc_buffer)
     171      _buffer.resize(_subsizes.Product());
    172172  }else  {
    173173    _type = MPI_DATATYPE_NULL;
Note: See TracChangeset for help on using the changeset viewer.