Commit ad31c138 authored by Florian Wittkamp's avatar Florian Wittkamp
Browse files

Minor changes

parent 02e4a137
## Finite-Difference simulation with the HPC library LAMA
*3D Acoustic Finite-Difference Code developed within the [WAVE-Project](http://wave-toolbox.org).*
Get started:
- See `README.md` in `par/`
Documentation:
- Type `doxygen` in `doc/`
Requierment:
- Library [LAMA](https://www.libama.org)
Tested with g++ (4.9.3).
......@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.
PROJECT_NAME = "FD Lama"
PROJECT_NAME = "3D FD with LAMA"
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
......@@ -44,7 +44,7 @@ PROJECT_NUMBER =
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.
PROJECT_BRIEF =
PROJECT_BRIEF = "3-D acoustic finite-difference wave propagation."
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
......
......@@ -7,7 +7,7 @@
- Set `export OMP_NUM_THREADS=1`
## Using OpenMPI/IntelMPI
- `mpirun -np 4 ./../FDSimulation`
- Modify `start_FDSimulation.sh` to e.g. `mpirun -np 4 ./../FDSimulation`
## Run LAMA
## Start the simulation
- `source start_FDSimulation.sh`
......@@ -14,7 +14,7 @@ DT=2.0e-03 // temporal sampling in seconds
T=2 // total simulation time
// define material parameter
ReadModel=1
ReadModel=0
FilenameModel=test2 // Seaches in folder model, this means model/FilenameModel
velocity=3500 // Density in kilo gramms per cubic meter
......
//! Class for Configuration
/*!
This class handels the I/O of the configuration.
*/
#pragma once
#include <scai/lama/Scalar.hpp>
......@@ -15,6 +9,10 @@
using namespace scai;
//! Class for Configuration of the FD simulation
/*!
This class handels the configuration for the finite-difference simulation.
*/
template<typename ValueType>
class Configuration
{
......@@ -282,4 +280,5 @@ private:
IndexType source_index; ///< Position of source in 1D coordinates
IndexType seismogram_index; ///< Position of receiver in 1D coordinates
};
\ No newline at end of file
};
......@@ -4,7 +4,6 @@
*/
#pragma once
#include <scai/lama.hpp>
......@@ -30,7 +29,6 @@
#include <iostream>
template<typename ValueType>
class Modelparameter
{
......@@ -58,6 +56,7 @@ private:
};
/*! \brief Constructor that is generating a homogeneous model
*
* Generates a homogeneous model, which will be initialized by the two given scalar values.
......@@ -83,8 +82,8 @@ Modelparameter<ValueType>::Modelparameter(hmemo::ContextPtr ctx, dmemo::Distribu
//! \brief Copy constructor
template<typename ValueType>
Modelparameter<ValueType>::Modelparameter(const Modelparameter& rhs){
pi=rhs.pi;
density=rhs.density;
pi=rhs.pi.copy();
density=rhs.density.copy();
}
/*! \brief Init model by a homogeneous model
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment