// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- // vi: set et ts=4 sw=4 sts=4: /***************************************************************************** * Copyright (C) 20010 by Markus Wolff * * Copyright (C) 2007-2008 by Bernd Flemisch * * Copyright (C) 2008-2009 by Andreas Lauser * * Institute for Modelling Hydraulic and Environmental Systems * * University of Stuttgart, Germany * * email: .@iws.uni-stuttgart.de * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see . * *****************************************************************************/ /*! * \file * * \brief tutorial for the sequential two-phase model */ #include "config.h" /*@\label{tutorial-decoupled:include-begin}@*/ #include "tutorialproblem_decoupled.hh" /*@\label{tutorial-decoupled:include-problem-header}@*/ #include /*@\label{tutorial-decoupled:include-end}@*/ //! Prints a usage/help message if something goes wrong or the user asks for help void usage(const char *progName, const std::string &errorMsg) /*@\label{tutorial-decoupled:usage-function}@*/ { std::cout << "\nUsage: " << progName << " [options]\n"; if (errorMsg.size() > 0) std::cout << errorMsg << "\n"; std::cout << "\n" << "The List of Mandatory arguments for this program is:\n" << "\t-tEnd The end of the simulation [s]\n" << "\t-dtInitial The initial timestep size [s]\n" << "\t-Grid.upperRightX The x-coordinate of the grid's upper-right corner [m]\n" << "\t-Grid.upperRightY The y-coordinate of the grid's upper-right corner [m]\n" << "\t-Grid.numberOfCellsX The grid's x-resolution\n" << "\t-Grid.numberOfCellsY The grid's y-resolution\n" << "\n"; } //////////////////////// // the main function //////////////////////// int main(int argc, char** argv) { typedef TTAG(TutorialProblemDecoupled) TypeTag; /*@\label{tutorial-decoupled:set-type-tag}@*/ return Dumux::start(argc, argv, usage); /*@\label{tutorial-decoupled:call-start}@*/ }