Ignore:
Timestamp:
Jul 4, 2012, 6:10:39 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
0260d3
Parents:
290aa3
Message:

vmg: Fix force calculation.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/units/particle/interface_fcs.cpp

    r290aa3 ref94e7  
    221221  const Grid& grid = multigrid(multigrid.MaxLevel());
    222222
    223   int error_code;
     223  int error_code = 0;
    224224
    225225  if (!grid.Global().LocalSize().IsComponentwiseGreater(near_field_cells))
    226226    error_code = 1;
    227   else
    228     error_code = 0;
    229 
    230   error_code = MG::GetComm()->GlobalMax(error_code);
    231 
    232   return error_code;
     227
     228  return MG::GetComm()->GlobalMax(error_code);
    233229}
    234230
Note: See TracChangeset for help on using the changeset viewer.