Skip to content

Commit

Permalink
[Add] WOSS Release 1.12.6
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalKnight committed Jan 31, 2024
1 parent 1186795 commit 2ce8f12
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 86 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,8 @@ v1.12.4 - Added support for GEBCO 2022
- Refactored usage of streams' precision throughout the whole framework

v1.12.5 - Minor fixes to ns-Miracle classes

v1.12.6 - fixed gcc-13 warnings
- TCL examples updated to GEBCO 2023
- removed warning in woss::BellhopWoss
- changed URL of main WOSS website
32 changes: 17 additions & 15 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
PLEASE NOTE : no super-user credentials are needed for any of these installations.

The current WOSS version has the following compatibilities:
- Acoustic Toolbox: June 2020
- HDF5 library: v1.8.13
- NetCDF C library: v4.7.3
- NetCDF4 C++ library: v4.3.1
- GEBCO databases: 1D and 2D, 2008, 2014, 2019 and 2020
- https://woss.dei.unipd.it/#libraries

Requirements

- Download the recommended Acoustic Toolbox library from http://telecom.dei.unipd.it/ns/woss/files/at.zip
- Download the recommended Acoustic Toolbox library from https://woss.dei.unipd.it/#libraries
and follow installation instructions. The directory path that contains
the binaries should be in the $PATH environment.
- woss::BellhopArrSyntax::BELLHOP_CREATOR_ARR_FILE_SYNTAX_1 is compliant with Bellhop arr file
Expand All @@ -19,10 +15,7 @@ Requirements
This is the new factory value.
- WOSS is now requiring NetCDF4 with HDF5 support in order to be able to read the latest GEBCO 2019 dataset.
- IF you wish to compile NetCDF4 software features, download the recommended HDF5, NetCDF library for C and
the C++4 from
- http://telecom.dei.unipd.it/ns/woss/files/hdf5-1.8.13.tar.gz
- http://telecom.dei.unipd.it/ns/woss/files/netcdf-c-4.7.3.tar.gz
- http://telecom.dei.unipd.it/ns/woss/files/netcdf-cxx4-4.3.1.tar.gz
the C++4 from https://woss.dei.unipd.it/#libraries
HDF5 and NetCDF4 have to be built with support for dynamic libraries.
Please refer to NetCDF documentation for comprehensive set of installation instructions.
Please note that the option --prefix is strongly suggested.
Expand All @@ -43,11 +36,10 @@ Requirements
- make check
- make install (should any test fail, based on test failure severity you could still give the install command)
- IF you want to compile NS-Miracle features download the latest version of NS2 allinone and of NS-Miracle
from the official git repository as instructed here:
http://telecom.dei.unipd.it/pages/read/58/
from the official git repository https://github.com/signetlabdei/nsmiracle:
Read documentation provided in the above link for installation instructions.
- If you want to use WOSS with world data, download and extract the provided databases.
Download the GEBCO 2020 2D Fifteen seconds zip archive from https://www.bodc.ac.uk/data/open_download/gebco/gebco_2020/zip/
Download the GEBCO 2020 2D Fifteen seconds zip archive from https://woss.dei.unipd.it/#libraries
or any of the previous datasets from https://www.gebco.net/data_and_products/historical_data_sets
and put them in the same directory.

Expand All @@ -58,8 +50,8 @@ How to install WOSS library
2) open a terminal and cd into that directory;
3) run './autogen.sh'
4) run './configure' with the following options:
--with-ns-allinone=<ns2-allinone_path> (optional)
--with-nsmiracle=<ns-miracle_path> (optional)
--with-ns-allinone=<ns2-allinone_path> (optional) see examples below in order to avoid gcc-13 compilation error.
--with-nsmiracle=<ns-miracle_path> (optional) see examples below in order to avoid gcc-13 compilation error.
--with-netcdf4=<NetCDF4_installation_path> (optional, the same mentioned in the Requirements section, if NetCDF4
was installed with no --prefix, the default path SHOULD be
/usr/local)
Expand All @@ -70,3 +62,13 @@ How to install WOSS library
5) run 'make'
6) run 'make check' in order to run WOSS tests
6) run 'make install'

Examples

The following line would install WOSS with pthread, and NetCDF4, but with no NS2/NS-Miracle support (stand-alone library).

./configure --with-netcdf4=<NetCDF4_install_path> --with-pthread --prefix=<path_where_libraries_will_be_installed>

The next line would install WOSS with NetCDF4, NS2 and NS-Miracle support and it removes the gcc-13 overloaded-virtual warning

CXXFLAGS="$CXXFLAGS -Wno-overloaded-virtual" ./configure --with-netcdf4=<NetCDF4_install_path> --with-ns-allinone=<ns2-allinone_path> --with-nsmiracle=<ns-miracle_path> --with-pthread --prefix=<path_where_libraries_will_be_installed>
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ your system, and launch the following:
doxygen doc-woss.cfg

further info and documentation can be found at
http://telecom.dei.unipd.it/ns/woss/
https://woss.dei.unipd.it
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# whose support is gratefully acknowledged.


AC_INIT([WOSS], [1.12.5], [woss@guerra-tlc.com])
AC_INIT([WOSS], [1.12.6], [woss@guerra-tlc.com])
AM_INIT_AUTOMAKE([foreign subdir-objects])

AC_MSG_NOTICE([WOSS AC_PACKAGE_VERSION])
Expand Down
94 changes: 52 additions & 42 deletions doxy/Mainpage.dox
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @author Federico Guerra - federico@guerra-tlc.com
*
* @version 1.12.5
* @version 1.12.6
*
* This document provides a short techical description of the <i>World Ocean Simulation System</i> (WOSS) library
* and of its integration into <i>Multi InteRfAce Cross Layer Extension</i> (NS-Miracle).<p>
Expand Down Expand Up @@ -1007,17 +1007,17 @@
*
* The current WOSS version has the following compatibilities:
* <ul>
* <li> <b>Acoustic Toolbox</b>: June 2020
* <li> <b>HDF5 library</b>: v1.8.13
* <li> <b>NetCDF C library</b>: v4.7.3
* <li> <b>Acoustic Toolbox</b>: May 2023
* <li> <b>HDF5 library</b>: v1.14.2
* <li> <b>NetCDF C library</b>: v4.9.2
* <li> <b>NetCDF4 C++ library</b>: v4.3.1
* <li> <b>GEBCO databases</b>: 1D and 2D, 2008, 2014, 2019, 2020
* <li> <b>GEBCO databases</b>: 1D and 2D, 2008, 2014, 2019, 2020, 2022, 2023
* </ul>

* \section WOSS-req Requirements
*
* <ul>
* <li> Download the <b>recommended</b> <a href="http://telecom.dei.unipd.it/ns/woss/files/at.zip">Acoustic Toolbox Library</a>
* <li> Download the <b>recommended</b> <a href="https://woss.dei.unipd.it/#libraries">Acoustic Toolbox Library</a>
* and follow installation instructions. The directory path that contains
* the binaries should be in the $PATH environment.
* <li> woss::BellhopArrSyntax::BELLHOP_CREATOR_ARR_FILE_SYNTAX_1 is compliant with Bellhop arr file
Expand All @@ -1026,42 +1026,46 @@
* syntax of the acoustic toolbox library >= 31 March 2019 version.
* This is the new factory value.
* @see woss::BellhopCreator::setBellhopArrSyntax or tcl binded value bellhop_arr_syntax.
* <li> <b>In order to use the latest GEBCO 2019 and 2020 15 seconds of arc databases, NetCDF4 + HDF5 support had to be added to the framework.</b>
* If you wish to use NetCDF classes and databases, download the recommended <a href="http://telecom.dei.unipd.it/ns/woss/files/hdf5-1.8.13.tar.gz">HDF5 library</a>
* <a href="http://telecom.dei.unipd.it/ns/woss/files/netcdf-c-4.7.3.tar.gz">NetCDF C library</a>
* and <a href="http://telecom.dei.unipd.it/ns/woss/files/netcdf-cxx4-4.3.1.tar.gz">NetCDF C++ library</a> ; \n
* <li> <b>In order to use the latest GEBCO 15 seconds of arc databases, NetCDF4 + HDF5 support had to be added to the framework.</b>
* If you wish to use NetCDF classes and databases, download the recommended <a href="https://woss.dei.unipd.it/#libraries">HDF5 library</a>
* <a href="https://woss.dei.unipd.it/#libraries">NetCDF C library</a>
* and <a href="https://woss.dei.unipd.it/#libraries">NetCDF C++ library</a> ; \n
* All libraries have to be built <b>with support for dynamic libraries</b> and with <b>NetCDF4 support</b>. \n
* Please refer to NetCDF documentation for comprehensive set of installation instructions of the C and C++ libraries.
* Please note that the <tt>--prefix=\<optional_netcdf4_install_path\> </tt> option is strongly suggested, and should be the same for HDF5, NetCDF-C and NetCDF-C++4. \n
* <i>The previous NetCDF legacy installation instrucions are still supported by are obsolete and not recommended</i>. \n
* Please note that the `--prefix=<optional_netcdf4_install_path>` option is strongly suggested, and should be the same for HDF5, NetCDF-C and NetCDF-C++4. \n
* <i>The previous NetCDF legacy installation instructions are still supported by are obsolete and not recommended</i>. \n
* A simple installation script is given here as example:
* <ul>
* <li> install the recommended HDF5 library with these exact steps:
* <ul>
* <li><tt>./configure --enable-shared --prefix=\<optional_netcdf4_install_path\></tt>
* <li><tt>make</tt>
* <li><tt>make check</tt>
* <li>should any test fail, based on the test severity you could still try to continue with the installation by issuing <tt>make install</tt>
* <li>`./configure --enable-shared --prefix=<optional_netcdf4_install_path>`
* <li>`make`
* <li>`make check`
* <li>should any test fail, based on the test severity you could still try to continue with the installation by issuing `make install`
* </ul>
* <li> install the recommended NETCDF4 C library by passing the common installation path in both CPPFLAGS and LDFLAGS:
* <ul>
* <li><tt>./configure --prefix=\<optional_netcdf4_install_path\> --enable-netcdf-4 --enable-shared --disable-dap CPPFLAGS="$CPPFLAGS -I<optional_netcdf4_install_path>/include" LDFLAGS="$LDFLAGS -L<optional_netcdf4_install_path>/lib</tt>
* <li><tt>make</tt>
* <li><tt>make check</tt>
* <li>should any test fail, based on the test severity you could still try to continue with the installation by issuing <tt>make install</tt>
* <li> `./configure --prefix=<optional_netcdf4_install_path> --enable-netcdf-4 --enable-shared `
* `--disable-dap --disable-byterange CPPFLAGS="$CPPFLAGS -I<optional_netcdf4_install_path>/include" `
* `LDFLAGS="$LDFLAGS -L<optional_netcdf4_install_path>/lib" `
* <li> `make`
* <li> `make check`
* <li>should any test fail, based on the test severity you could still try to continue with the installation by issuing `make install`
* </ul>
* <li> install the recommended NETCDF4 C++ library by passing the common installation path in both CPPFLAGS and LDFLAGS:
* <ul>
* <li><tt>./configure --prefix=\<optional_netcdf4_install_path\> --enable-shared CPPFLAGS="$CPPFLAGS -I<optional_netcdf4_install_path>/include" LDFLAGS="$LDFLAGS -L<optional_netcdf4_install_path>/lib"</tt>
* <li><tt>make</tt>
* <li><tt>make check</tt>
* <li><tt>make install</tt>
* <li>`./configure --prefix=<optional_netcdf4_install_path> `
* `--enable-shared CPPFLAGS="$CPPFLAGS -I<optional_netcdf4_install_path>/include" `
* `LDFLAGS="$LDFLAGS -L<optional_netcdf4_install_path>/lib" `
* <li>`make`
* <li>`make check`
* <li>`make install`
* </ul>
* </ul>
* <li> If you wish to add NS-Miracle support, download the <b>latest</b> version of NS-Miracle from the official git repository as instructed <a href="http://telecom.dei.unipd.it/pages/read/58/">here</a>: \n
* <li> If you wish to add NS-Miracle support, download the <b>latest</b> version of NS-Miracle from the <a href="https://github.com/signetlabdei/nsmiracle">official git repository</a>: \n
* Read documentation provided in the above link for installation instructions.
* <li> If you wish to use WOSS with world data, download and extract the provided databases.
* Download the <a href="https://www.bodc.ac.uk/data/open_download/gebco/gebco_2022/zip/">GEBCO 2022 2D Fifteen seconds zip archive</a>
* <li> If you wish to use WOSS with world environmental data, download and extract the latest WOSS databases.
* Download the <a href="https://www.bodc.ac.uk/data/open_download/gebco/gebco_2023/zip/">GEBCO 2023 2D Fifteen seconds zip archive</a>
* or any of the <a href="https://www.gebco.net/data_and_products/historical_data_sets">previous data sets</a>
* and put them in the same directory.
* </ul>
Expand All @@ -1070,37 +1074,37 @@
*
* <ol>
* <li> extract the compressed file in a directory of your choice and cd into that directory;
* <li> run <tt>./autogen.sh</tt>
* <li> run <tt>./configure</tt> with the following options:
* <li> run `./autogen.sh`
* <li> run `./configure` with the following options:
* <ul>
* <li> <tt>--with-ns-allinone=\<<i>ns2-allinone_path</i>\></tt> <i> <b>optional</b>, needed if you want to compile the library for NS2 and NSMIRACLE.</i>
* <li> <tt>--with-nsmiracle=\<<i>ns-miracle_path</i>\></tt> <i> <b>optional</b>, needed if you want to compile the library for NS2 and NSMIRACLE.</i>
* <li> <tt>--with-netcdf4=\<<i>NetCDF4_install_path</i>\></tt> <i> <b>optional</b>, needed if you want to use NetCDF4 + HDF5 databases.
* <li> `--with-ns-allinone=<ns2-allinone_path>` <i> <b>optional</b>, needed if you want to compile the library for NS2 and NSMIRACLE.</i> @see \ref ex_inst to avoid gcc-13 error compilation.
* <li> `--with-nsmiracle=<ns-miracle_path>` <i> <b>optional</b>, needed if you want to compile the library for NS2 and NSMIRACLE.</i> @see \ref ex_inst to avoid gcc-13 error compilation.
* <li> `--with-netcdf4=<NetCDF4_install_path>` <i> <b>optional</b>, needed if you want to use NetCDF4 + HDF5 databases.
* (The path is the same mentioned in the Requirements section, if NetCDF4
* was installed with no --prefix, the default path SHOULD be
* /usr/local) </i>
* <li> <tt>--with-pthread</tt> <i>optional</i> but <b>recommended</b>
* <li> <tt>--prefix=\<<i>path_where_libraries_will_be_installed</i>\></tt>
* <li> `--with-pthread` <i>optional</i> but <b>recommended</b>
* <li> `--prefix=<path_where_libraries_will_be_installed>`
* \n this path is optional and should be the same one used with NS-Miracle installation.
* If used, this path should be added to the environmental variable <i>LD_LIBRARY_PATH</i>.
* Please refer to NS-Miracle documentation for more info
* </ul>
* <li> run <tt>make</tt>
* <li> run <tt>make check</tt> to optionally perform any framework test
* <li> should any test fail, please enable its debug, rerun the test, collect the debug output file written <tt>woss/tests/</tt> directory and send a mail to WOSS@guerra-tlc.com
* <li> run <tt>make install</tt>
* <li> run `make`
* <li> run `make check` to optionally perform any framework test
* <li> should any test fail, please enable its debug, rerun the test, collect the debug output file written `woss/tests/` directory and send a mail to WOSS@guerra-tlc.com
* <li> run `make install`
* </ol>
*
* \section ex_inst Examples
*
* The following line would install WOSS with pthread, and NetCDF4, but with no NS2/NS-Miracle support (stand-alone library).
*
* <tt>./configure --with-netcdf4=\<<i>NetCDF4_install_path</i>\> --with-pthread --prefix=\<<i>path_where_libraries_will_be_installed</i>\></tt>
* `./configure --with-netcdf4=<NetCDF4_install_path> --with-pthread --prefix=<path_where_libraries_will_be_installed>`
*
* The next line would install WOSS with NetCDF4, NS2 and NS-Miracle support
* The next line would install WOSS with NetCDF4, NS2 and NS-Miracle support and it removes the gcc-13 overloaded-virtual warning
*
* <tt>./configure --with-netcdf4=\<<i>NetCDF4_install_path</i>\> --with-ns-allinone=\<<i>ns2-allinone_path</i>\>
* --with-nsmiracle=\<<i>ns-miracle_path</i>\> --with-pthread --prefix=\<<i>path_where_libraries_will_be_installed</i>\></tt>
* `CXXFLAGS="$CXXFLAGS -Wno-overloaded-virtual" ./configure --with-netcdf4=<NetCDF4_install_path> --with-ns-allinone=<ns2-allinone_path>
* --with-nsmiracle=<ns-miracle_path> --with-pthread --prefix=<path_where_libraries_will_be_installed>`
**/


Expand Down Expand Up @@ -1310,6 +1314,12 @@
* <li> <b>v.1.12.5</b> <ul>
* <li> minor fixes to ns-Miracle classes
* </ul>
* <li> <b>v.1.12.6</b> <ul>
* <li> fixed gcc-13 warnings
* <li> TCL examples updated to GEBCO 2023
* <li> removed warning in woss::BellhopWoss
* <li> changed URL of main WOSS website
</ul>
* </ul>
**/

Expand Down
3 changes: 2 additions & 1 deletion samples/test_aloha_with_dbs.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ set db_bathy [new "WOSS/Creator/Database/NetCDF/Bathymetry/GEBCO"]
#$db_bathy setDbPathName "${opt(db_path_gebco)}/bathymetry/GEBCO_2019.nc"
#$db_bathy setDbPathName "${opt(db_path_gebco)}/bathymetry/GEBCO_2020.nc"
#$db_bathy setDbPathName "${opt(db_path_gebco)}/bathymetry/GEBCO_2021.nc"
$db_bathy setDbPathName "${opt(db_path_gebco)}/bathymetry/GEBCO_2022.nc"
#$db_bathy setDbPathName "${opt(db_path_gebco)}/bathymetry/GEBCO_2022.nc"
$db_bathy setDbPathName "${opt(db_path_gebco)}/bathymetry/GEBCO_2023.nc"


#$db_bathy useOneMinutePrecision
Expand Down
Loading

0 comments on commit 2ce8f12

Please sign in to comment.