GithubHelp home page GithubHelp logo

pnlfang / swatmrmtr Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 52.04 MB

Fortran 84.24% Forth 0.01% Makefile 0.87% Shell 0.11% TeX 5.02% Gnuplot 1.02% Mathematica 0.31% Roff 0.01% Python 3.45% Scheme 0.04% MATLAB 0.07% Elixir 0.02% Standard ML 0.02% C++ 3.79% C 0.28% CMake 0.31% Arc 0.43%

swatmrmtr's Introduction

The following notes are for running the SWAT-MRMT-R model on PNNL's constance supercomputer.

Notes for source codes:

  1. SWAT originiated from revision 664
  2. PFLOTRAN originated from hash bc0bb2d
  3. petsc hash 1a9d3c3 is needed to compile PFLOTRAN and SWAT

To generate an excutable:

  1. Install petsc git clone https://gitlab.com/petsc/petsc petsc cd petsc git checkout 1a9d3c3

    module purge module load precision/i4 module load intel module load openmpi module load mkl module load gcc/4.8.2 module load cmake

    export PETSC_DIR=pwd export PETSC_ARCH=contance_intel15_O

    ./config/configure.py
    --with-fc=mpif90
    --with-cxx=mpicxx
    --with-clanguage=c
    --with-blas-lapack-dir=/share/apps/intel/2015u1/mkl
    --with-shared-libraries=1
    --download-hdf5=yes
    --download-parmetis=yes
    --download-metis=yes
    --with-debugging=0

    make PETSC_DIR=$PETSC_DIR PETSC_ARCH=$PETSC_ARCH all

  2. Download swatmrmtr

  3. Compile PFLOTRAN to create library libpflotranchem.a cd swatmrmtr/pflotran/src/pflotran make pflotran_rxn

  4. Compile SWAT-MRMT-R cd swatmrmtr/SWAT-MRMT-R make swatmrmtr.e

To run the model: swat.e

Apart from the input files for the native swat model, four more files are required to run swatmrmtr.e:

  1. Input file for the reaction parameters. Default file name: pflotran.in.
  2. Input file for user defined database.
  3. Input file for hyporheic exchange flow rates and residence times. Default file name: nxs2swat.txt.
  4. Initial chemical composition in the hyporheic zones. Default file name: hz_init_conc.dat

The definition of parameters related to multirate mass transfer and hyporheic biological reactions can be found in function CyberRead in pflotran/src/pflotran/reaction_sandbox_pnnl_cyber_mrmt.F90. Note: reactions in reaction_sandbox_pnnl_cyber_mrmt.F90 only assume two-step reactions for denitrification and an aerobic respiration reaction. Otherwise, the code has to be modified following steps documented in https://www.pflotran.org/documentation/theory_guide/reaction_sandbox.html

Disclaimer SWAT-MRMT-R is an open-source software distributed under the terms of the GNU Lesser General Public License as published by the Free Software Foundation either version 2.1 of the License, or any later version.

swatmrmtr's People

Contributors

yfang-repo avatar

Watchers

 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.