Code Monkey home page Code Monkey logo

chenopis's Introduction

Chenopis
-------------------------------------
This is a maintenance branch of SWAN.
The following changes were made:
    - Use to cpp/fpp preprocessing (for debugging purposes, editable source files)
    - Use autotools for compilation (find settings, build tar, tags, etc..)

Instructions for running a SWAN model
-------------------------------------

Windows XP/Vista/7
------------------

*) Before running, first adapt the environment
   variable PATH by including the pathname of the
   directory where swan.exe can be found. This
   pathname can be specified through the category
   System of Control Panel, on the Advanced tab,
   click Environment Variables.

*) You may also need to add the directory path where
   bin of MPICH2 is resided to PATH to have access
   to the command mpiexec.exe.

*) Open a command prompt and change to the directory
   where your application is resided.

*) Execute the batch-file swanrun.bat as follows:

   swanrun SWAN-inputfile [nprocs]

   where SWAN-inputfile is the name of your inputfile
   without extension (it is assumed that the extension
   is '.swn') and 'nprocs' indicates how many processors
   need to be launched for a parallel MPI run (do not
   type the brackets; they just indicate that nprocs
   is optional). By default, nprocs=1.

   This script is also suited when no MPICH2 is available
   (of course, nprocs must be 1).

   This script is also suited for multi-core PC provided
   that SWAN source code with OpenMP directives is
   compiled. The parameter 'nprocs' must be set to 1.



UNIX or Linux
-------------

*) The name of the SWAN-executable must be swan.exe.
   Furthermore, adapt the environment variable PATH
   by including the pathname of the directory where
   this executable can be found.

*) Use the script swanrun. To execute this script, it
   will need to be executable first, so

   chmod +rx ./swanrun

*) This script can be used as follows:

   ./swanrun -input SWAN-inputfile [-omp n | -mpi n] [> swanout &]

   where SWAN-inputfile is the name of your inputfile
   without extension (it is assumed that the extension
   is '.swn') and n is the number of processors.
   The parameter '-omp n' specifies a parallel run on n
   threads using OpenMP. The parameter '-mpi n' specifies
   a parallel run on n cores using MPI. The parameter
   '-input' is obliged, whereas the parameters '-omp n' or
   '-mpi n' can be omitted (default: n=1).

   This script is also suited when no MPI is available
   (of course, n must be 1).

   You may redirect the output of swanrun to the file
   swanout (in this case). It is also possible to run
   your model in the background as indicated by the
   ampersand.

*) For a parallel MPI run, you may also need a machinefile
   that contains the names of the nodes in your parallel
   environment. Put one node per line in the file. You
   can specify a number followed by a colon after the node
   name to indicate how many processes to launch on the
   node. This is useful e.g., for multi-core processors.
   The run procedure will cycle through this list until
   all the requested processes are launched. Example file:

   node1
   node2:2
   node4
   node7:4

chenopis's People

Contributors

siggyf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.