Get SWAN at Fast, secure and Free Open Source software downloads

Known bugs and patches

For SWAN 41.10, patches are available here (if appropriate). These fix bugs. Also, new features will be released from time to time.

To apply a patch, first, you must place the downloaded patch files (right-clicking the file, open a new window and then save it as text file) in the folder where the source code of SWAN is located, and then execute the following command:

patch -p0 < patchfile

It is important not to change or modify the patch files since they may contain tabs! If needed, use dos2unix to convert DOS to UNIX format. After applying a patch, you need to recompile the SWAN source code.

Note to Windows users

  • patch is a Unix command. Download the patch program appropriate for Windows (it is one of the GNU utilities for Win32 that are freely available).
  • However, Windows 7 (or Vista) demands that patch must be run with administrative privileges. To hack this, do the following:
    1. Rename patch.exe to patsh.exe.
    2. Then create a batch file patch.bat in the same directory containing the following command:

      @patsh.exe %*

If you wish to submit a new bug report, send an e-mail to me.

bug ID description of problem and fix or new features release datepatchfile
  • changes:
    • use double precision for time coding
    • some automatic arrays used for SPB triads are made allocatable
    • default CFL for refraction limiter changed from 0.5 to 0.9
    • support gfortran and Intel Fortran compilers for macOS
    • support Intel Fortran compiler 17 for MS Windows
  • bug fixes:
    • small correction interpolation near obstacles with flexible mesh
    • correction comparison grid orientation and wave direction with formatted hotfiles
23-03-2017 41.10.A