REW

From SourceWiki
Revision as of 17:15, 2 February 2009 by Wbuytaert (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Introduction

This page collects information about the application of the Representative Elementary Watershed model.

Versions

THREW

C version maintained by Fuqiang Tian (University of Illinois)

CREW

FORTRAN version maintained by Haksu Lee

Installation

THREW

Macintosh / linux

An easy way to install on mac and linux is by creating first static libraries for the solver and then linking those in the application. The advantage of this is that you don't need to recompile the solver each time you make changes to the model, which is quicker. Compiling it this way involves the following steps:

  • decompress cvode-2.5.0.tar.gz, and add the directory /include/threw/ from the threw model to cvode-2.5.0/include. Replace the file cvode-2.5.0/src/cvode/cvode.c with the one included in the THREW model.
  • Compile the solver with the changes we just made. This can be done with the following commands from within the cvode-2.5.0 directory:
    ./configure
    ./make
  • copy the static libraries, which reside in a hidden directory
    cp src/cvode/.libs/libsundials_cvode.a ./
    cp src/nvec_ser/.libs/libsundials_nvecserial.a ./
  • then copy both files (libsundials_cvode.a and libsundials_nvecserial.a) into the src directory of the THREW model.
  • now you should be able to compile the threw model with the following command:
    gcc -pipe threw_closure.c threw_error.c threw_f.c threw_init.c threw_io.c threw_utility.c threw2.c -o threw2 \
    -L. -lsundials_cvode -lsundials_nvecserial -I../include


Developers and applications

afaik, the following institutes / persons use a version of the REW model

  • University of Illinois at Urbana Champaign
  • University of Bristol (Wouter Buytaert)
  • T U Munchen