Commit 36eae1aa authored by Christoph Pflaum's avatar Christoph Pflaum
Browse files

Parameter in einer Interpolationsklasse hinzugefuegt

parent d82b8ebc
......@@ -188,6 +188,12 @@ double L_infty_cell(const Expr2D<A>& a, Marker2D& marker);
template <class A>
double L_infty_cell(const Expr2D<A>& a);
template <class A>
double Maximum_cell(const Expr2D<A>& ao);
template <class A>
double Minimum_cell(const Expr2D<A>& ao);
/* @} */
......
......@@ -77,7 +77,7 @@ Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(int nx_, int
}
Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(Blockgrid2D* blockgrid_) {
Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(Blockgrid2D* blockgrid_, double factorIncrease) {
blockgrid = blockgrid_;
ug = blockgrid->Give_unstructured_grid();
......@@ -122,8 +122,9 @@ Interpolate_on_structured_2Dgrid::Interpolate_on_structured_2Dgrid(Blockgrid2D*
}
}
nx = Nmax*4;
ny = Nmax*4;
nx = Nmax*factorIncrease;
ny = Nmax*factorIncrease;
pWS = boxWS;
pEN = boxEN;
......
......@@ -76,7 +76,7 @@ class Interpolate_on_structured_2Dgrid {
* preparation for interpolation
@param blockgrid_ of unstructured grid
**/
Interpolate_on_structured_2Dgrid(Blockgrid2D* blockgrid_);
Interpolate_on_structured_2Dgrid(Blockgrid2D* blockgrid_, double factorIncrease = 4);
/**
......@@ -129,7 +129,7 @@ class Interpolate_on_structured_2Dgrid_with_data : protected Interpolate_on_stru
Interpolate_on_structured_2Dgrid_with_data(int nx_, int ny_,
D2vector pWS, D2vector pEN,
Blockgrid2D& blockgrid_);
Interpolate_on_structured_2Dgrid_with_data(Blockgrid2D& blockgrid_);
Interpolate_on_structured_2Dgrid_with_data(Blockgrid2D& blockgrid_, double factorIncrease = 4);
void setData(Variable2D<DTyp>& u, DTyp defaultInterpolation);
......@@ -361,8 +361,8 @@ Interpolate_on_structured_2Dgrid_with_data<DTyp>::Interpolate_on_structured_2Dgr
}
template <class DTyp>
Interpolate_on_structured_2Dgrid_with_data<DTyp>::Interpolate_on_structured_2Dgrid_with_data(Blockgrid2D& blockgrid_)
: Interpolate_on_structured_2Dgrid(&blockgrid_) {
Interpolate_on_structured_2Dgrid_with_data<DTyp>::Interpolate_on_structured_2Dgrid_with_data(Blockgrid2D& blockgrid_, double factorIncrease)
: Interpolate_on_structured_2Dgrid(&blockgrid_, factorIncrease) {
data = new DTyp[nx*ny];
for(int i=0;i<nx*ny;++i) data[i] = 0.0;
}
......
Markdown is supported
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