1. 31 Jan, 2019 1 commit
  2. 30 Jan, 2019 2 commits
  3. 29 Jan, 2019 1 commit
    • Mark Olesen's avatar
      ENH: add 'default' as possible Switch state, but not as input/output · fd348374
      Mark Olesen authored
      - in some circumstances we need to pass a bool value upwards to the
        caller and know if the true/false value was set based on real input
        or is a default value.
      
        Eg, in the object::read() we might normally have
      
           enabled_(dict.readIfPresent(key, true));
      
        but would lose information about why the value is true/false.
      
        We can change that by using
      
           enabled_(dict.readIfPresent<Switch>(key, Switch::DEFAULT_ON));
      
        After which we can use this information is testing.
      
            if
            (
                child.enabled().nonDefault()
              ? child.enabled()
              : parent.enabled()
            )
            { ... }
      
         And thus enable output if the parent requested it explicitly or by
         default and it has not been explicitly disabled in the child.
      
        No difference when testing as a bool and the text representation
        of DEFAULT_ON / DEFAULT_OFF will simply be "true" / "false".
      
      ENH: add construction of Switch from dictionary (similar to Enum)
      fd348374
  4. 26 Jan, 2019 1 commit
  5. 25 Jan, 2019 3 commits
  6. 24 Jan, 2019 3 commits
  7. 23 Jan, 2019 6 commits
  8. 22 Jan, 2019 2 commits
  9. 21 Jan, 2019 3 commits
  10. 17 Jan, 2019 2 commits
  11. 16 Jan, 2019 1 commit
    • Mark Olesen's avatar
      ENH: add simplified gather methods for globalIndex with default communicator · 3d4c4ea2
      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();
          ----
      3d4c4ea2
  12. 14 Jan, 2019 2 commits
  13. 11 Jan, 2019 2 commits
  14. 10 Jan, 2019 8 commits
  15. 09 Jan, 2019 3 commits