next up previous
Next: Use of patch files Up: Introduction Previous: Introduction

The material

The downloaded file swan4110.tar.gz contains the SWAN source code. You can unzip this file either with WinRAR (in case of Windows) or with the command tar xzf (in case of UNIX or Linux). The SWAN source code consists of the following files:

main program : swanmain.ftn  
pre-processing routines : swanpre1.ftn  
     swanpre2.ftn  
     SwanBndStruc.ftn90  
computational routines : swancom1.ftn  
     swancom2.ftn  
     swancom3.ftn  
     swancom4.ftn  
     swancom5.ftn  
post-processing routines : swanout1.ftn  
     swanout2.ftn  
service routines : swanser.ftn  
     SwanIntgratSpc.ftn90  
routines for support    
parallel MPI runs : swanparll.ftn  
routines for unstructured     
grids : SwanReadGrid.ftn90  
     SwanReadADCGrid.ftn90  
     SwanReadTriangleGrid.ftn90  
     SwanReadEasymeshGrid.ftn90  
     SwanInitCompGrid.ftn90  
     SwanCheckGrid.ftn90  
     SwanCreateEdges.ftn90  
     SwanGridTopology.ftn90  
     SwanGridVert.ftn90  
     SwanGridCell.ftn90  
     SwanGridFace.ftn90  
     SwanPrintGridInfo.ftn90  
     SwanFindPoint.ftn90  
     SwanPointinMesh.ftn90  
     SwanBpntlist.ftn90  
     SwanPrepComp.ftn90  
     SwanVertlist.ftn90  
     SwanCompUnstruc.ftn90  
     SwanDispParm.ftn90  
     SwanPropvelX.ftn90  
     SwanSweepSel.ftn90  
     SwanPropvelS.ftn90  
     SwanTranspAc.ftn90  
     SwanTranspX.ftn90  
     SwanGradDepthorK.ftn90  
     SwanDiffPar.ftn90  
     SwanGSECorr.ftn90  
     SwanInterpolatePoint.ftn90  
     SwanInterpolateAc.ftn90  
     SwanInterpolateOutput.ftn90  
     SwanConvAccur.ftn90  
     SwanConvStopc.ftn90  
     SwanThreadBounds.ftn90  
     SwanFindObstacles.ftn90  
     SwanCrossObstacle.ftn90  
     SwanComputeForce.ftn90  
routines for parallel,     
unstructured grids : SwanReadfort18.ftn90  
     SwanSumOverNodes.ftn90  
     SwanMinOverNodes.ftn90  
     SwanMaxOverNodes.ftn90  
     SwanPunCollect.ftn90  
modules and subroutines     
for netCDF : nctablemd.ftn90  
     agioncmd.ftn90  
     swn_outnc.ftn90  
couplers : couple2adcirc.ftn90  
routines for installation : ocpids.ftn  
command reading routines : ocpcre.ftn  
miscellaneous routines : ocpmix.ftn  
general modules : swmod1.ftn  
     swmod2.ftn  
modules for XNL : m_constants.ftn90  
     m_fileio.ftn90  
     serv_xnl4v5.ftn90  
     mod_xnl4v5.ftn90  
modules for unstructured     
grids : SwanGriddata.ftn90  
     SwanGridobjects.ftn90  
     SwanCompdata.ftn90  
modules for spectral     
partitioning : SwanSpectPart.ftn  

The source code is written in Fortran 90. Some routines are written in fixed form and depending on your system, the extension may be for or f. Other routines are written in free form and are indicated by extension f90. The conversion from ftn or ftn90 to one of these extensions can be done automatically or manually; see Chapter 3.


You are allow to make changes in the source code of SWAN, but Delft University of Technology will not support modified versions of SWAN. If you ever want your modifications to be implemented in the authorized version of SWAN (the version on the SWAN web page), you need to submit these changes to the SWAN team (swan-info-citg@tudelft.nl). The source code is also provided with the following files:

installation procedures : INSTALL.README  
     Makefile  
     macros.inc  
     which.cmd  
     platform.pl  
     switch.pl  
run procedures : SWANRUN.README  
     swanrun  
     swanrun.bat  
machinefile for parallel     
MPI runs : machinefile  
for concatenation of     
multiple hotfiles : swanhcat.ftn  
     hcat.nml  
     HottifySWAN.ftn90  
edit file : swan.edt  
Matlab scripts for     
unstructured grids : plotunswan.m  
     plotgrid.m  

On the SWAN web page, you also find some test cases with some output files for making a configuration test of SWAN on your computer. You may compare your results with those in the provided output files.


next up previous
Next: Use of patch files Up: Introduction Previous: Introduction
The SWAN team 2017-03-23