1. 27 Aug, 2018 1 commit
  2. 24 Aug, 2018 3 commits
  3. 24 Jul, 2018 2 commits
    • GILLES Sebastien's avatar
      #1302 LuaOptionFile: shorten the file by making the selection of a parameter more simple. · 987c119e
      GILLES Sebastien authored
      Previously, you had to fill each individual type of possibility for a Parameter, regardless of the one finally chosen. For instance, you had something like (skipping the documentation...):
      
      VolumicMass
      {
          nature = "constant"
          scalar = 1.
          lua_function = none
          piecewise_constant_domain_id = { }
          piecewise_constant_domain_value = { }
      }
      
      and each of these entries should be filled (a shortcut 'none' was however created for lua_function).
      
      This made the Lua files rather heavy, and moreover signaled the non used fields (here VolumicMass.lua_function, VolumicMass.piecewise_constant_domain_id and VolumicMass.piecewise_constant_domain_value) as unused.
      
      Now using up the strength of newly introduced in C++17 std::variant (or boost::variant for Apple Clang currently - see #1305), a more synthetic writing ha been introduced:
      
      VolumicMass
      {
          nature = "constant"
          value = 1.
      }
      
      where 'value' type depends on the 'nature' choice. For instance, a user might replace it by:
      
      VolumicMass
      {
          nature = "piecewise_constant_by_domain"
          value = { [3] = 1., [5] = 0.5 }
      }
      
      Please notice the usage of the associative container which was introduced when LuaOptionFile replaced Ops.
      
      NOTE: Rather unusually, I have here merged many commits into one: due to the large scope of the modifications to do, I worked only on a specific test. Consequently, other models and tests stopped to compile, and I really like the code to at least compile at all of its commit not to break the git bisect functionality.
      987c119e
    • GILLES Sebastien's avatar
      6d21f1df
  4. 16 May, 2018 1 commit
  5. 16 Mar, 2018 1 commit
  6. 17 Dec, 2017 3 commits
  7. 15 Dec, 2017 5 commits
  8. 29 Dec, 2016 1 commit
  9. 29 Nov, 2016 2 commits
  10. 13 Oct, 2016 1 commit
  11. 12 Oct, 2016 1 commit
  12. 12 Aug, 2016 1 commit
  13. 29 Apr, 2016 1 commit
  14. 01 Apr, 2016 3 commits
  15. 17 Mar, 2016 1 commit
  16. 09 Mar, 2016 1 commit
  17. 23 Feb, 2016 1 commit