Skip to content
Snippets Groups Projects
  1. Mar 11, 2020
  2. Feb 28, 2020
  3. Feb 27, 2020
    • Mark OLESEN's avatar
      ENH: improvements for nastran surface writer (#1571) · b476dd92
      Mark OLESEN authored
      - avoid face copying.
        Maintain separate offsets/list for non tri/quad face decomposition,
        which eliminates copying for tri/quad types that represent the bulk
        of geometries
      
      - report inappropriate use of PLOAD2 for higher-ranks only once per
        field instead of per face.  For this case, write its magnitude
        instead of 0.
      
      - perform field output scaling prior to calling the write face
        function. This will make it easier to handle different per-field
        scaling in the future (#1612)
      
      BUG: nastran quad written as "CTRIA3" instead of "CQUAD4"
      b476dd92
  4. Feb 26, 2020
  5. Feb 24, 2020
    • Mark OLESEN's avatar
      STYLE: relocate nonCoupledBoundaryTree into meshSearcher · a456e9ae
      Mark OLESEN authored
      - use point::uniform in more places
      a456e9ae
    • Mark OLESEN's avatar
      DEFEATURE: remove further remnants of surfMesh samplers · 3835734f
      Mark OLESEN authored
      - continuation of commit 57d2eabc (2019-02-22)
      3835734f
    • Mark OLESEN's avatar
      CONFIG: improve prefix matching for system libraries (#1607) · 5ba2cbc5
      Mark OLESEN authored
      - missed detection of system libraries when installed with multiarch
        paths like /usr/lib/x86_64-linux-gnu
      
      CONFIG: improve handling of group/user config files (#928)
      
      - changed bashrc handling of FOAM_CONFIG_NOUSER to use
        FOAM_CONFIG_MODE instead. Propagate into foamEtcFile to make this
        a stickier control.
      
        This change allows better control, but also enables cluster
        installations to define their own value within the OpenFOAM prefs.sh
        file to prevent users accidentally mis-configuring things if
        necessary.
      
      - remove undocumented handling of an (a)ll mode in foamEtcFile to
        avoid potential pitfalls.
      
      - add support for FOAM_CONFIG_ETC handling.
        This allows injection of an extra search layer when finding
        project etc files
      
      ENH: improvements to foamConfigurePaths (#928)
      
      - handle FOAM_CONFIG_ETC implicitly, or explicitly with the new
        -etc option.
      
      STYLE: more explicit wording in foamConfigurePaths usage (#1602)
      
      - document that an absolute path (eg, -scotch-path) overrides/ignores
        the equivalent ThirdParty setting (eg, -scotch)
      
      - longer options -system-compiler and -third-compiler for -system
        and -third, respectively. Clearer as to their purpose.
      
      - adjust the location sanity check to look for META-INFO directory.
      5ba2cbc5
  6. Feb 21, 2020
  7. Feb 20, 2020
  8. Feb 19, 2020
  9. Feb 18, 2020
    • Mark OLESEN's avatar
      ENH: support use of IOstreamOption for IFstream/OFstream · e3f681fa
      Mark OLESEN authored
      - can be convenient to bundle IO options as a single parameter
      e3f681fa
    • Mark OLESEN's avatar
      STYLE: use unique_ptr for Fstream resource management · f3106ec1
      Mark OLESEN authored
      STYLE: change return type of NewOFstream from Ostream to OSstream
      f3106ec1
    • Mark OLESEN's avatar
      ENH: support IOstreamOption in abstract stream types · 3135dcf2
      Mark OLESEN authored
      - expose the write IOstreamOption in Time
      3135dcf2
    • Mark OLESEN's avatar
      ENH: improvements to IOstreamOption · 33f9ae50
      Mark OLESEN authored
      * Support default values for format/compress enum lookups.
      
        - Avoids situations where the preferred default format is not ASCII.
          For example, with dictionary input:
      
              format binar;
      
          The typing mistake would previously have caused formatEnum to
          default to ASCII. We can now properly control its behaviour.
      
              IOstream::formatEnum
              (
                  dict.get<word>("format"), IOstream::BINARY
              );
      
          Allowing us to switch ascii/binary, using BINARY by default even in
          the case of spelling mistakes. The mistakes are flagged, but the
          return value can be non-ASCII.
      
      * The format/compression lookup behave as pass-through if the lookup
        string is empty.
      
        - Allows the following to work without complaint
      
            IOstream::formatEnum
            (
                dict.getOrDefault("format", word::null), IOstream::BINARY
            );
      
        - Or use constructor-like failsafe method
      
            IOstream::formatEnum("format", dict, IOstream::BINARY);
      
        - Apply the same behaviour with setting stream format/compression
          from a word.
      
             is.format("binar");
      
          will emit a warning, but leave the stream format UNCHANGED
      
      * Rationalize versionNumber construction
      
        - constexpr constructors where possible.
          Default construct is the "currentVersion"
      
        - Construct from token to shift the burden to versionNumber.
          Support token as argument to version().
      
          Now:
      
              is.version(headerDict.get<token>("version"));
      
          or failsafe constructor method
      
              is.version
              (
                  IOstreamOption::versionNumber("version", headerDict)
              );
      
          Before (controlled input):
      
              is.version
              (
                  IOstreamOption::versionNumber
                  (
                      headerDict.get<float>("version")
                  )
              );
      
          Old, uncontrolled input - has been removed:
      
              is.version(headerDict.lookup("version"));
      
      * improve consistency, default behaviour for IOstreamOption construct
      
        - constexpr constructors where possible
      
        - add copy construct with change of format.
      
        - construct IOstreamOption from streamFormat is now non-explicit.
          This is a commonly expected result with no ill-effects
      33f9ae50
    • Mark OLESEN's avatar
      ENH: adjustments to Switch · bb53e8ad
      Mark OLESEN authored
      - align Switch more with Enum.
        Now have find(), found() static methods.
        Constructors with failsafe option.
      
        The find() method makes for clearer coding:
      
        OLD
      
           Switch sw(some_string, true); // NB: true = allowBad
      
           if (sw.valid()) ...
      
        NOW
      
           Switch sw = Switch::find(some_string);
      
           if (sw.good()) ...
      
        or
      
           if (Switch::found(some_string)) ...
      
      - improve construct from dictionary to handle all valid token types.
        Previously just read in a word.
      
      - Remove asText() method - replaced by c_str() and str() several
        versions ago.
      bb53e8ad
    • Mark OLESEN's avatar
      STYLE: provide return value for IOstream::fatalCheck() · ed4bd548
      Mark OLESEN authored
      - allows reuse as base implementation for IOstream::check()
      ed4bd548
    • Mark OLESEN's avatar
      STYLE: FatalError instead of warning for handling deprecated field format · ac709da3
      Mark OLESEN authored
      - The warning in Field.C has been emitted since 2005.
      - The warning in mappedPatchBase.C has been emitted since 2012.
      ac709da3