Skip to content
Snippets Groups Projects

Reduce use of MAX_DIM macro

Merged Micael Oliveira requested to merge reduce_use_of_max_dim into develop
All threads resolved!

Description

Some changes to reduce the use of the MAX_DIM macro in the code. Mainly it changes the the size to which the mesh%x array is allocated along the second dimension (it was MAX_DIM and now it is mesh%sb%dim). As a side effect the mesh_x_global function now returns an vector of size mesh%sb%dim instead of MAX_DIM and the coords optional argument of function mesh_r now works for vectors that are not of size MAX_DIM.

This MR was originally part of !1169 (merged), but in the end, although useful, it ended up in not being necessary for the changes in that other MR.

News snippet

Some changes to reduce the use of the MAX_DIM macro in the code.

Checklist

  • I have checked that my code follows the Octopus coding standards
  • I have added tests for all the new features added in this request.

Merge request reports

Pipeline #243020544 passed

Pipeline passed for 1e5939cc on reduce_use_of_max_dim

Merged by Sebastian OhlmannSebastian Ohlmann 4 years ago (Jan 18, 2021 12:46pm UTC)

Loading

Pipeline #243183994 failed

Pipeline failed for 66cece61 on develop

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Sebastian Ohlmann resolved all threads

    resolved all threads

  • Sebastian Ohlmann approved this merge request

    approved this merge request

  • mentioned in commit 66cece61

  • Please register or sign in to reply
    Loading