Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor coordinates #2873

Open
wants to merge 504 commits into
base: next
Choose a base branch
from
Open

Refactor coordinates #2873

wants to merge 504 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Mar 2, 2024

  1. Update documentation.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    904546b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc82c8b View commit details
    Browse the repository at this point in the history
  3. Prefer const.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    924618d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab2e122 View commit details
    Browse the repository at this point in the history
  5. Make dx, dy, dz private.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    07a2862 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    294737b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    84e108f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    54b343b View commit details
    Browse the repository at this point in the history
  9. Corrected comment.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    41b0a5b View commit details
    Browse the repository at this point in the history
  10. Prefer const.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    0106a2c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0bf195b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    f248de9 View commit details
    Browse the repository at this point in the history
  13. Make non_uniform private.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    6528658 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3b3915e View commit details
    Browse the repository at this point in the history
  15. Clang-Tidy: Constructors that are callable with a single argument mus…

    …t be marked explicit to avoid unintentional implicit conversions.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    05ea951 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    46a11ae View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    62d19fb View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    331eb1e View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    31c7640 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    6fe1813 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    2cf9453 View commit details
    Browse the repository at this point in the history
  22. Add a constructor for ChristoffelSymbols that takes no Mesh (because …

    …FakeMesh has no 'source', which causes a crash when the constructor leads to initialisation of FieldMetric objects).
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    3ccd720 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    83c5d72 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    8c06cd1 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    b8e192d View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    aa42c9f View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    e44f1b7 View commit details
    Browse the repository at this point in the history
  28. Clang-Tidy: Single-argument constructors must be marked explicit to a…

    …void unintentional implicit conversions.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    721479d View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    0d5c250 View commit details
    Browse the repository at this point in the history
  30. Formatting.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    046a7ad View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    f2dc950 View commit details
    Browse the repository at this point in the history
  32. Corrected comment.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    88e18b6 View commit details
    Browse the repository at this point in the history
  33. Need to call setter directly on contravariantMetricTensor and covaria…

    …ntMetricTensor in Coordinates::setBoundaryCells method, to avoid recalculation of the christoffel symbols, which would (at this stage) involve field data at different locations (specifically the metric tensor and jacobian).
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    0460b04 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    0c65aed View commit details
    Browse the repository at this point in the history
  35. Don't pass mesh to ChristoffelSymbols constructor in the Coordinates …

    …constructor that is used with FakeMesh.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    aa03305 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    25399d7 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    3d81700 View commit details
    Browse the repository at this point in the history
  38. Pass (a reference to) Coordinates to CalculateChristoffelSymbols(), r…

    …ather than the metric tensor, dx, dy, etc.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    e8065ab View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    35402dd View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    8f326fc View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    fad98bc View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    1cc67e4 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    99683e4 View commit details
    Browse the repository at this point in the history
  44. Prefer const.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    12cdafe View commit details
    Browse the repository at this point in the history
  45. Tidy.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    ecd60c9 View commit details
    Browse the repository at this point in the history
  46. Refactor.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    e08bd11 View commit details
    Browse the repository at this point in the history
  47. Formatting.

    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    f87f834 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    f54a3e4 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    529c253 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    937094e View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    5f5d892 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    f934687 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    f29ff3d View commit details
    Browse the repository at this point in the history
  54. Remove 'getAtLoc' function overload that updates an in/out variable, …

    …and the remaining two uses of it.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    58c21eb View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    4f45142 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    47666d0 View commit details
    Browse the repository at this point in the history
  57. Use member variables 'localmesh' and 'nz' in methods, rather than pas…

    …sing it in as a parameter or re-fetching.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    44c87b3 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    cb86bd3 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    888317e View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    9ffee2c View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    1bc3d8f View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    033c5df View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    e7ae4f3 View commit details
    Browse the repository at this point in the history
  64. Use extrapolate_x, extrapolate_y options if set.

    (So now we can directly replace jacobian() with recalculateJacobian(); no longer a special case).
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    2a3358f View commit details
    Browse the repository at this point in the history
  65. Reduce code duplication by moving call to interpolateAndExtrapolate()…

    … outside of if-else statement.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    b08a27c View commit details
    Browse the repository at this point in the history
  66. Refactor to use sourceHasVar() and getAtLoc() for IntShiftTorsion, as…

    … they are for the other variables.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    34e6e37 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    12423e2 View commit details
    Browse the repository at this point in the history
  68. Make jacobian_cache a std::unique_ptr.

    Set after comparing calculated and loaded values, otherwise there will be no difference.
    Rename Jcalc to J_from_file.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    0ba9c00 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    81b83e4 View commit details
    Browse the repository at this point in the history
  70. Remove ShiftTorsion setter (to avoid problems with it not being initi…

    …alised fully (no mesh)).
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    f9ec8dc View commit details
    Browse the repository at this point in the history
  71. Extract class GValues to encapsulate G1, G2, G3 (needs renaming when …

    …we know what the name should be) and implement with same pattern as Christoffel symbols.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    b7ac99b View commit details
    Browse the repository at this point in the history
  72. Extract methods Coordinates::communicateGValues() and Coordinates::ex…

    …trapolateGValues().
    
    Make GValues constructor take a reference to Coordinates (so that it can call methods on the Coordinates class (DDX, DDY, DDZ, communicate).
    Make communicate() a (public) method of Coordinates so that it can be called by the GValues constructor.
    This means fixZShiftGuards() also has to be a (private) method of Coordinates.
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    5538632 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    e254b98 View commit details
    Browse the repository at this point in the history
  74. Fix additional strings after renaming "MetricTensor::CalculateOpposit…

    …eRepresentation" to "MetricTensor::inverse".
    tomchapman committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    9ef7b74 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Define two derived classes CovariantMetricTensor and CovariantMetricT…

    …ensor that inherit from MetricTensor.
    tomchapman committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    14887ff View commit details
    Browse the repository at this point in the history
  2. Revert extracted functions on DifferentialOperators for those that ar…

    …e only used by Coordinates class (i.e. put back dependency on bout/derivs).
    tomchapman committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    bb34560 View commit details
    Browse the repository at this point in the history
  3. Fully revert extracting differential operator methods from Coordinate…

    …s class onto DifferentialOperators.
    tomchapman committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    fb2266f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4ba9669 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c14070a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e8d5a7e View commit details
    Browse the repository at this point in the history
  7. Move trivial getters and setters (and setLocation() method) of Metric…

    …Tensor class to header file.
    tomchapman committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5ee546b View commit details
    Browse the repository at this point in the history
  8. No need to pre-assign values to explanatory variables before using to…

    … construct a MetricTensor.
    
    Co-authored-by: Ben Dudson <[email protected]>
    2 people authored and tomchapman committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    49378cd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f4cbb8c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1293ff6 View commit details
    Browse the repository at this point in the history
  11. Remove redundant const.

    tomchapman committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    8a003ef View commit details
    Browse the repository at this point in the history
  12. Fix MetricTensor::inverse method (it was replacing each metric compon…

    …ent with a single scalar value).
    tomchapman committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    315d739 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eb58344 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c1246bd View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Clang-tidy: "Use auto when initialising with a template cast to avoid…

    … duplicating the type name"
    tomchapman committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    b371136 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Bug fix: Don't specify region when setting contravariant metric tenso…

    …r in 'interpolateFieldsFromOtherCoordinates' method.
    tomchapman committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    de146f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ad4b39 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. Configuration menu
    Copy the full SHA
    d1516db View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    518672d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf6df73 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    3cddd46 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99751c6 View commit details
    Browse the repository at this point in the history
  3. Remove redundant function 'ChristoffelSymbols::map' (instead just cal…

    …ling ChristoffelSymbols::applyToComponents() directly).
    tomchapman committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    5d0a696 View commit details
    Browse the repository at this point in the history
  4. Revert "Minor fixes."

    This reverts commit 5d2a9dd.
    
    (Return value could be either Field2D or Field3D).
    tomchapman committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    15815f4 View commit details
    Browse the repository at this point in the history
  5. Apply clang-format changes

    tomc271 authored and github-actions[bot] committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    b8a2158 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c46d0ab View commit details
    Browse the repository at this point in the history
  7. Merge remote-tracking branch 'remotes/boutproject/refactor-coordinate…

    …s' into refactor-coordinates
    tomchapman committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    550a42d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9466334 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    031fb4b View commit details
    Browse the repository at this point in the history
  10. Apply clang-format changes

    tomc271 authored and github-actions[bot] committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    d259faf View commit details
    Browse the repository at this point in the history
  11. Remove obsolete comment.

    tomchapman committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    ad36b89 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    e7bdfcf View commit details
    Browse the repository at this point in the history
  2. Call communicateAndCheckMeshSpacing() in ChristoffelSymbols construct…

    …or (immediately before calling the differential operator functions).
    tomchapman committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    2e46100 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Remove unused #include.

    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    92aaaa1 View commit details
    Browse the repository at this point in the history
  2. Clang-Tidy: Single-argument constructors must be marked explicit to a…

    …void unintentional implicit conversions.
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    9adbfda View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    62dcf21 View commit details
    Browse the repository at this point in the history
  4. Prefer const.

    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    77231a6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0235449 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c967204 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2718250 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c7b70a9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    07078ed View commit details
    Browse the repository at this point in the history
  10. Clang-Tidy: Constructors that are callable with a single argument mus…

    …t be marked explicit to avoid unintentional implicit conversions.
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    363223a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1d36429 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9e651aa View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ac9cad6 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0dfafd4 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7348598 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    53b181e View commit details
    Browse the repository at this point in the history
  17. Revert "Move interpolateAndExtrapolate() to Mesh class."

    This reverts commit 37c90c5.
    
    It now has to be a class method, as it's called by other functions that are now member functions.
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    1624876 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    5c1e0f5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    e998baa View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    b50a5e2 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    1786e04 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    a837b72 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    9966161 View commit details
    Browse the repository at this point in the history
  24. Return type of Grad_par() and Vpar_Grad_par() should be FieldMetric, …

    …not Field2D
    
    (as it could be either Field2D or Field3D).
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    e7a8e77 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    4c33d86 View commit details
    Browse the repository at this point in the history
  26. Return type of the std::function parameter to MetricTensor::map shoul…

    …d be FieldMetric, not Field2D
    
    (as it could be either Field2D or Field3D).
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    44dff02 View commit details
    Browse the repository at this point in the history
  27. Return type of Mesh::get() should be FieldMetric, not Field2D

    (as it could be either Field2D or Field3D).
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    b46795e View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    164660a View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    4e296bd View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    3b09a2d View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    3e03b76 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    e551211 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    3642d69 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    a03362a View commit details
    Browse the repository at this point in the history
  35. G1, G2, G3 are now calculated in the GValues constructor, so no need …

    …to set to arbitrary values in the tests.
    
    Also the constructor calls the differential operators, which (in the BOUT_USE_METRIC_3D case) require that the ParallelTransform has already been set.
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    9df8bf8 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    002539f View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    459e598 View commit details
    Browse the repository at this point in the history
  38. Add new coordinates object to coords_map before calling recalculateAn…

    …dReset().
    
    Otherwise calculation of the Christoffel symbols and metric tensor will cause Mesh::getCoordinates() to be called (and fail).
    
    (This is because of the circular dependency between Mesh and Coordinates).
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ce2066b View commit details
    Browse the repository at this point in the history
  39. Improve exception handling - ensure that transform is not null before…

    … attempting to use it in Coordinates::DDY().
    tomchapman committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    a0fc687 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. Ensure transform is set even when Coordinates is instantiated with th…

    …e constructor that takes no Options
    
    (Use the basic type, ParallelTransformIdentity, in this case).
    tomchapman committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    968497e View commit details
    Browse the repository at this point in the history
  2. Need to ensure parallel transform is set before differential operator…

    …s are used
    
    (and setParallelTransform() requires that dz is already set!)
    tomchapman committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    cefb4ee View commit details
    Browse the repository at this point in the history
  3. Don't setLocation() of dz at this point, to avoid ASSERT1_FIELDS_COMP…

    …ATIBLE(lhs, rhs) failing in Field3D operator/(const Field3D& lhs, const Field3D& rhs).
    tomchapman committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    b68f69d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dd0ee5c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2ea7e27 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Configuration menu
    Copy the full SHA
    c0b4e04 View commit details
    Browse the repository at this point in the history
  2. Fix test-laplacexz: Use a non-zero value for off-diagonal components …

    …that gives a valid inverse metric (i.e. all diagonal components positive).
    
    This became a problem once setting the contra- or co-variant metric tensor was made to trigger the calculation of the other representation.
    tomchapman committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    cee7596 View commit details
    Browse the repository at this point in the history
  3. Apply clang-format changes

    tomc271 authored and tomchapman committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    6232eb4 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Configuration menu
    Copy the full SHA
    9498ae1 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. Configuration menu
    Copy the full SHA
    59faafd View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. include <functional>

    Tom C authored and Tom C committed May 10, 2024
    Configuration menu
    Copy the full SHA
    17f7097 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Add Coordinates::setMetricTensor() method for setting both co- and co…

    …ntravariant components.
    tomchapman committed May 14, 2024
    Configuration menu
    Copy the full SHA
    10d0fdb View commit details
    Browse the repository at this point in the history
  2. Call Mesh::communicate() rather than Coordinates::communicate() when …

    …multiple parameters are sent.
    tomchapman committed May 14, 2024
    Configuration menu
    Copy the full SHA
    834f11a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e045f2e View commit details
    Browse the repository at this point in the history
  4. Allow FieldGroup to take const-qualified parameters.

    Some duplication of methods because there are still cases where it has to take non-const items.
    tomchapman committed May 14, 2024
    Configuration menu
    Copy the full SHA
    5ced89d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2f7a6af View commit details
    Browse the repository at this point in the history
  6. Replace variadic template with two methods: void communicate(const Fi…

    …eld2D& f) and void communicate(const Field3D& f).
    tomchapman committed May 14, 2024
    Configuration menu
    Copy the full SHA
    22a6341 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    27b461b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b53d092 View commit details
    Browse the repository at this point in the history
  9. Do the copying in the method that calls communicate(), so that the co…

    …pies are still in scope when they are used.
    tomchapman committed May 14, 2024
    Configuration menu
    Copy the full SHA
    f1216b1 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Do the copying in the method that calls Mesh::communicate(), so that …

    …the copies are still in scope when they are used.
    tomchapman committed May 15, 2024
    Configuration menu
    Copy the full SHA
    736198b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b308f6c View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. Add MetricTensor::communicate() method, since need to pass a non-cons…

    …t reference to the actual data to Mesh::communicate(), so that it can modify it.
    tomchapman committed May 16, 2024
    Configuration menu
    Copy the full SHA
    3d17795 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    550c38f View commit details
    Browse the repository at this point in the history
  3. Pass (const refs to) the actual d1_dx, d1_dy, d1_dz data to localmesh…

    …->communicate(), so that it will be able to modify it.
    tomchapman committed May 16, 2024
    Configuration menu
    Copy the full SHA
    47017c6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fdc6c28 View commit details
    Browse the repository at this point in the history
  5. Remove redundant methods Coordinates::communicateChristoffelSymbolTer…

    …ms() and Coordinates::communicateGValues().
    tomchapman committed May 16, 2024
    Configuration menu
    Copy the full SHA
    896a610 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Coordinates::communicate() method needs to take a non-const parameter…

    … to be able to modify it.
    tomchapman committed May 22, 2024
    Configuration menu
    Copy the full SHA
    545ede8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e7df6bc View commit details
    Browse the repository at this point in the history
  3. Restore #include "impls/bout/boutmesh.hxx"

    (removed in commit 62dcf21)
    tomchapman committed May 22, 2024
    Configuration menu
    Copy the full SHA
    04c9399 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c703dd3 View commit details
    Browse the repository at this point in the history
  5. Revert "More [[maybe_unused]] attributes."

    This reverts commit c7b70a9.
    tomchapman committed May 22, 2024
    Configuration menu
    Copy the full SHA
    8194863 View commit details
    Browse the repository at this point in the history
  6. Revert "Add [[maybe_unused]] attributes."

    This reverts commit 0235449.
    tomchapman committed May 22, 2024
    Configuration menu
    Copy the full SHA
    3ce726c View commit details
    Browse the repository at this point in the history
  7. Revert "Prefer const."

    This reverts commit 77231a6.
    tomchapman committed May 22, 2024
    Configuration menu
    Copy the full SHA
    53622ec View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8650f4f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d32f7a6 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Configuration menu
    Copy the full SHA
    fb181e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. Use new method Coordinates::setMetricTensor() when manually setting b…

    …oth co- and contravariant components in the tests and examples.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    45abd74 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    357601d View commit details
    Browse the repository at this point in the history
  3. Prefer const.

    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    e713a5e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ad60a6 View commit details
    Browse the repository at this point in the history
  5. Define local variables on assignment (and using auto).

    Other clang-tidy suggestions.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    de8abf3 View commit details
    Browse the repository at this point in the history
  6. Revert "Clang-Tidy: Constructors that are callable with a single argu…

    …ment must be marked explicit to avoid unintentional implicit conversions."
    
    This reverts commit befabd5.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    3928562 View commit details
    Browse the repository at this point in the history
  7. Revert "Use std::move() for constructor parameters."

    This reverts commit ac9cad6.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    3f4abe0 View commit details
    Browse the repository at this point in the history
  8. Revert "Another unused #include directive."

    This reverts commit b2a3dad.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    49deb09 View commit details
    Browse the repository at this point in the history
  9. Revert "Clang-Tidy: Single-argument constructors must be marked expli…

    …cit to avoid unintentional implicit conversions."
    
    This reverts commit 9adbfda.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    bf5e9e9 View commit details
    Browse the repository at this point in the history
  10. Revert "Remove redundant semicolons."

    This reverts commit 40de3ee.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    ec6b7d3 View commit details
    Browse the repository at this point in the history
  11. Revert "More [[maybe_unused]] attributes."

    This reverts commit e37d6fe.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    68fa3a4 View commit details
    Browse the repository at this point in the history
  12. Revert "More unused #include directives."

    This reverts commit b719ad1.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    e3cb84e View commit details
    Browse the repository at this point in the history
  13. Revert "Clang-Tidy: The 'empty' method should be used to check for em…

    …ptiness instead of 'length'."
    
    This reverts commit 2718250.
    tomchapman committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    3d293c4 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. Apply clang-format changes

    tomc271 authored and github-actions[bot] committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    64ed06e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ff4df3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    187c081 View commit details
    Browse the repository at this point in the history
  4. Revert "Clang-Tidy: Method can be made static."

    This reverts commit 07078ed.
    tomchapman committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    e5d1c77 View commit details
    Browse the repository at this point in the history
  5. Revert "More unused #include directives."

    This reverts commit 0dfafd4.
    tomchapman committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    12e769c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b692beb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    804d77a View commit details
    Browse the repository at this point in the history
  8. Apply clang-format changes

    tomc271 authored and tomchapman committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    ae29dc8 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. Rename setBoundaryCells() to readFromMesh(), and interpolateFieldsFro…

    …mOtherCoordinates() to interpolateFromCoordinates().
    tomchapman committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    77896a3 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Configuration menu
    Copy the full SHA
    7c68462 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69eee97 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    541ff17 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ec1e0ac View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    67e4c3d View commit details
    Browse the repository at this point in the history
  6. Explicity setting the jacobian has to come after setting the metric t…

    …ensor
    
    because it will invalidate the (cached) jacobian, which will then be recalculated from the metric tensor).
    tomchapman committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    2e88073 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Apply clang-format changes

    tomc271 authored and tomchapman committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    33111b3 View commit details
    Browse the repository at this point in the history
  2. Add overload getters for dx, dy, and dz, that give the value at a par…

    …ticular x, y (or x, y, z) position.
    tomc authored and tomchapman committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    2dfdb42 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c2a1d1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc2b0c3 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Configuration menu
    Copy the full SHA
    a5157ce View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Add overloaded getters for d1_dx, d1_dy, and d1_dz, that give the val…

    …ue at a particular x, y (or x, y, z) position.
    tomchapman committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    fa24eb8 View commit details
    Browse the repository at this point in the history
  2. The (x, y) indexing methods return a pointer when BOUT_USE_METRIC_3D …

    …and a reference otherwise).
    tomchapman committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    541da12 View commit details
    Browse the repository at this point in the history
  3. Add overloaded getters for metric tensor components, that give the va…

    …lue at a particular x, y (or x, y, z) position.
    tomchapman committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    a2b9584 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4fb48ba View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7041398 View commit details
    Browse the repository at this point in the history
  6. The (x, y) indexing methods return a pointer when BOUT_USE_METRIC_3D …

    …and a reference otherwise).
    tomchapman committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    f2e01ab View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    35d0912 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    4852b00 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    dca8598 View commit details
    Browse the repository at this point in the history
  2. Add overloaded getter for IntShiftTorsion that gives the value at a p…

    …articular x, y (or x, y, z) position.
    tomchapman committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    078a51b View commit details
    Browse the repository at this point in the history
  3. Add overloaded getter for J() that gives the value at a particular x,…

    … y (or x, y, z) position
    tomchapman committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    f49eb92 View commit details
    Browse the repository at this point in the history
  4. Add overloaded getter for zlength() that gives the value at a particu…

    …lar x, y (or x, y, z) position
    tomchapman committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    8ad42cc View commit details
    Browse the repository at this point in the history
  5. Add overloaded getters for G1, G2, G3, that give the value at a parti…

    …cular x, y (or x, y, z) position
    tomchapman committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    10bf54a View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Apply clang-format changes

    tomc271 authored and github-actions[bot] committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    3d8198f View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Revert "x, y, z are accessed through getters on BoundaryRegionPar."

    This reverts commit 541ff17.
    
    Issue is fixed in separate PR
    ZedThree committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    cbce1b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa6663d View commit details
    Browse the repository at this point in the history
  3. Merge branch 'next' into refactor-coordinates

    * next: (72 commits)
      Make function signature match implementation in example
      Fix some clang-tidy issues in dalf3
      Apply suggestions from code review
      Apply clang-format changes
      prefer `auto *` for pointer types
      Fix: preserve regionID
      Fix exception message
      Ensure pointer is checked before dereferencing
      Try to do the right thing for linking netCDF::netcdf
      Add LC gitlab CI for GPU build/run tests
      BoutMask: Add non-const operator[](Ind3D)
      Use consistently signed char
      Apply clang-format changes
      naulin laplace: Acceptance tolerances after maxits
      CI: Remove test of deleted example
      CI: Bump all ubuntu images
      Read 2D variables into Field3D
      Fix "call to deleted constructor of 'Options' [clang-diagnostic-error]"
      Apply clang-format changes
      Revert change to reference for 'datadir'.
      ...
    ZedThree committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    c85f2ad View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Configuration menu
    Copy the full SHA
    5b61d2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2d3c52 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    687f0c4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2411ab2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1213035 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e5010e4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a926df1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ff3fdef View commit details
    Browse the repository at this point in the history
  9. Remove MetricTensor::setLocation

    Location will already be set from initialising using `emptyFrom`
    ZedThree committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    676f0a0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ff12e4a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8a1d040 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0663ea8 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a4fe574 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b276d74 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    61196bf View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    42dc6ee View commit details
    Browse the repository at this point in the history
  17. Fix wrong type in MMS/gbs

    ZedThree committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    47cff9e View commit details
    Browse the repository at this point in the history