Skip to content

Reduce use of MAX_DIM macro

Micael Oliveira requested to merge reduce_use_of_max_dim into develop

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

Loading