sampsapursiainen / zeffiro_interface

Interface for using finite elements in inverse problems with complex domains
GNU General Public License v3.0
23 stars 15 forks source link

Error in mesh generation with volume refinement post-processing #163

Open SeSodesa opened 1 year ago

SeSodesa commented 1 year ago

When running the mesh generation routine on the open head model we have been using, with surface refinement (mesh generation) on in

and volumetric refinement (post-processing) on in

the following error is raised during post-processing:

Error using vertcat
Dimensions of arrays being concatenated are not consistent.

Error in zef_postprocess_fem_mesh (line 157)
refinement_compartments = [refinement_compartments ; refinement_compartments_aux(:)];

Error in zef_create_finite_element_mesh (line 12)
zef = zef_postprocess_fem_mesh(zef);

Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 410)
Error while evaluating Button PrivateButtonPushedFcn.

The initial mesh resolution was set at 2 mm.

SeSodesa commented 1 year ago

It looks like the size of refinement_compartments is [1,11] whereas the size of refinement_compartments_aux is [2,1]. These of course cannot be vertically concatenated without resizing or repeating.