Skip to content

Boundary keywords and bugfix#1346

Merged
bendudson merged 4 commits intonextfrom
boundary-keywords
Nov 23, 2018
Merged

Boundary keywords and bugfix#1346
bendudson merged 4 commits intonextfrom
boundary-keywords

Conversation

@bendudson
Copy link
Contributor

Not sure if this should go into next or BoundaryOp-refactor first... Contains a new feature (keywords for boundary operations), and a fix for a previously existing bug which was found while adding unit tests.

Parses arguments with "key=value" form as keywords, so

dirichlet(1, width=3)

passes into `clone` a list of arguments ["1"] and a map of keywords
{"width":"3"}. This is not particularly clever, so may go wrong in a
variety of interesting ways. It should work for the simple cases we
support.
Unit test of BoundaryFactory registers a dummy boundary operation,
then uses this to test different combinations of positional arguments
and keywords.

Fixed long-standing bug in boundary factory, where this was intended
to slice from start to i, but actually produced a string of length i.

    string s = arg.substr(start, i);
@johnomotani
Copy link
Contributor

I don't have a strong opinion. I'm merging into BoundaryOp-refactor at the moment, but I'd lean to merging this PR into next already since it has a bugfix and a test.

@d7919
Copy link
Member

d7919 commented Oct 31, 2018

Should the bug fix strictly go into master? If it's lived in the code for a long time then I guess it's probably not causing any problems.

* next: (83 commits)
  Improve some comments; use uniform initialisation more consistently
  Default initialise field sizes and Field::bndry* status
  Default initialise boundaryIs{Copy,Set} in FieldData
  Default initialise some Field3D/2D members
  Add move constructor for Field2D
  Add swap function for Field2D
  Add move constructor for Field3D
  Fix:Escaping in makefile
  Documentation improvements
  Improve documentation
  Replace tabs with spaces
  Correct trace statement
  Add missing TRACE call
  boutcore docs update
  Add documentation
  Remove regeneration test
  Print command line options to output_info
  Remove ignored arguments from AUTO_TRACE and add doxygen comment
  Save Coordinates* pointer in Laplacian
  Remove usage of global 'mesh' pointer in Laplacian solvers
  ...
@bendudson bendudson merged commit c890af4 into next Nov 23, 2018
@bendudson bendudson deleted the boundary-keywords branch November 23, 2018 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants