1. 16 Jan, 2019 1 commit
    • Mark Olesen's avatar
      ENH: add simplified gather methods for globalIndex with default communicator · f498d09d
      Mark Olesen authored
      - when combining lists in processor order this simplifies code and
        reduces memory overhead.
      
        Write this:
          ----
          labelList collected;
      
          const globalIndex sizing(input.size());
          sizing.gather(input, collected);
          ----
      
        OR
      
          ----
          labelList collected;
          globalIndex::gatherOp(input, collected);
          ----
      
        Instead of this:
      
          ----
          labelList collected;
      
          List<labelList> scratch(Pstream::nProcs());
          scratch[Pstream::myProcNo()] = input;
          Pstream::gatherList(scratch);
      
          if (Pstream::master())
          {
              collected = ListListOps::combine<labelList>
              (
                  scratch,
                  accessOp<labelList>()
              );
          }
          scratch.clear();
          ----
      f498d09d
  2. 05 Nov, 2018 1 commit
    • Mark Olesen's avatar
      ENH: extend globalIndex toGlobal methods · f5baa9a5
      Mark Olesen authored
      - now applicable to labelLists.
      
      Note:
        in some situations it will be more efficient to use
        Foam::identity() directly. Eg,
      
           globalIndex globalCells(mesh.nCells());
           ...
           labelList cellIds
           (
               identity(globalCells.localSize(), globalCells.localStart())
           );
      f5baa9a5
  3. 01 Aug, 2018 1 commit
  4. 13 Aug, 2018 1 commit
    • Mark Olesen's avatar
      ENH: additional methods for globalIndex · 3e941ae4
      Mark Olesen authored
      - const version of offsets().
      
      - empty() method to test for empty offsets, or zero overall size
      
      - reset() methods for reseting the sizes. For example, when the context
        has shifted slightly.
      
      - localStart() methods, similar to localSize() methods
      
      STYLE: make globalIndex single parameter constructors explicit
      3e941ae4
  5. 26 Jan, 2018 1 commit
  6. 25 Apr, 2016 1 commit
  7. 08 Nov, 2015 1 commit
  8. 03 May, 2013 1 commit
  9. 27 Feb, 2013 1 commit
  10. 08 Feb, 2013 1 commit
  11. 14 Aug, 2011 1 commit
  12. 19 Jan, 2011 1 commit
  13. 14 Jan, 2011 1 commit
  14. 07 Jan, 2011 1 commit
  15. 05 Jan, 2011 2 commits
  16. 28 Jul, 2010 1 commit
  17. 29 Mar, 2010 1 commit
  18. 03 Nov, 2009 1 commit
  19. 25 Jun, 2009 1 commit
  20. 23 Jun, 2009 2 commits
  21. 29 May, 2009 1 commit
  22. 31 Dec, 2008 1 commit
  23. 14 Aug, 2008 1 commit
  24. 25 Jun, 2008 2 commits
  25. 15 Apr, 2008 1 commit