SWE
|
#include <cassert>
#include <cstdlib>
#include <string>
#include <iostream>
#include "blocks/SWE_WavePropagationBlock.hh"
#include "writer/VtkWriter.hh"
#include "scenarios/SWE_simple_scenarios.hh"
#include "tools/help.hh"
#include "tools/Logger.hh"
#include "tools/ProgressBar.hh"
Functions | |
int | main (int argc, char **argv) |
This file is part of SWE.
SWE 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 3 of the License, or (at your option) any later version.
SWE 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 SWE. If not, see <http://www.gnu.org/licenses/>.
Basic setting of SWE, which uses a wave propagation solver and an artificial or ASAGI scenario on a single block.
int main | ( | int | argc, |
char ** | argv | ||
) |
Main program for the simulation on a single SWE_WavePropagationBlock.
Initialization.
number of grid cells in x- and y-direction.
l_baseName of the plots.
number of checkpoints for visualization (at each checkpoint in time, an output file is written).
size of a single cell in x- and y-direction
origin of the simulation domain in x- and y-direction
time when the simulation ends.
checkpoints when output files are written.
simulation time.
maximum allowed time step width.
Finalize.