sampsapursiainen / zeffiro_interface

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

Implemented new function m/volume.m to reduce repetition #58

Closed SeSodesa closed 2 years ago

SeSodesa commented 2 years ago

Many files in the project had the same 3 lines of code used to calculate a volume from a given set of nodes, tetrahedra and an index matrix. These were extracted into a function to reduce repetition. The funtion was also taken into use in the culprit files.

A bunch of leftover whitespace was also removed from the related files. Matlab should really do this automatically…