CHLNDDEV / OceanMesh2D

A two-dimensional triangular mesh generator with pre- and post-processing utilities written in pure MATLAB (no toolboxes required) designed specifically to build models that solve shallow-water equations or wave equations in a coastal environment (ADCIRC, FVCOM, WaveWatch3, SWAN, SCHISM, Telemac, etc.).
https://github.com/sponsors/krober10nd
GNU General Public License v3.0
178 stars 64 forks source link

Various bugfixes #282

Closed dahonegger closed 1 year ago

dahonegger commented 1 year ago

In Calc_f13.m: If "obj.f13" is empty, then "broken" is undefined and the code breaks when default values are set on Line 109. Here we let broken=0 to allow default values to be defined.

In Make_f15.m: In original code, "all()" is acting on "abs(...)" and not the logical comparison. Here the parentheses are moved so that "all()" acts on the logical comparison in each coordinate.

krober10nd commented 1 year ago

Please add a note on the changelog. Thanks!

dahonegger commented 1 year ago

Changelog notes added for https://github.com/CHLNDDEV/OceanMesh2D/pull/282