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
183 stars 65 forks source link

Adding a bash script that downloads m_map and the basic datasets #189

Closed WPringle closed 3 years ago

WPringle commented 3 years ago

adding in the setup.sh script and changing README to fit

krober10nd commented 3 years ago

That's a good idea. Does this also add the relevant folders to the paths? If the files are already downloaded, no point to redownload.

krober10nd commented 3 years ago

Could be a one command type thing to start up so no path fuddling.

WPringle commented 3 years ago

I think with Matlab you need to add the paths to path each time unless you set permanently within windows. The bash scripts checks if the files exist so it doesn't re-download them.

WPringle commented 3 years ago

I guess try it out for yourself to check on your system.

krober10nd commented 3 years ago

yea looks like some strange formatting issue when I try to run the script from my bash terminal

-bash: ./setup.sh: /bin/bash^M: bad interpreter: No such file or directory

file is in the directory.

krober10nd commented 3 years ago

Ok, I ran dos2unix and it fixed the issue.