Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Install MacPorts from http://www.macports.org/install.php
  • Install packages using MacPorts
    • Go to Terminal
    • Run "sudo port install subversion autoconf automake libtool pkg-config netcdf netcdf-fortran"

    • Give your password if requested

      Tip
      titleWhy so many packages?

      You'll need subversion to download the XBeach source code, although you could download the source code as a ZIP file from the http://xbeach.org website. But that is not cool. Then you need autoconf, automake, libtool and pkg-config to prepare the compilation for your system. In theory you can do without it, but nobody knows how. Finally you'll need the netcdf and netcdf-fortran packages to be able to compile XBeach with the self-explanatory netCDF output format rather than the default Fortran binary output. This is optional, but advisable for most applications. You can search for even more packages using "port search <packagename>". If you wish.

  • Install the mako Python package using easy_install (or pip)
    • Go to Terminal
    • Run "sudo easy_install mako"

      Tip
      titlePython packages? I though XBeach was written in Fortran

      XBeach is written in Fortran. But a lot of code is repetitive in XBeach, for example the handling of all input parameters and output variables. Since this is hard to maintain and tedious to code we use a Python preprocessor that writes this repetitive code for us based on templates. These templates depend on the mako package, which you need to install. Python is shipped with all Mac OS X and UNIX distributions and even with the latest Windows versions, so it should be available to you.

...