Commit 6c5abedf authored by Blue Bird's avatar Blue Bird
Browse files

Aenderungen wegen FFT Variable

parent 51631c47
......@@ -30,6 +30,8 @@
#include "../ugopenmp.h"
#endif
class Rectangle;
template <typename TYPE> class ExpressionRestriction2D;
template <typename TYPE> class ExpressionProlongation2D;
......@@ -177,11 +179,11 @@ class Variable2D : public Expr2D<Variable2D< DTyp > > {
Variable2D ( Blockgrid2D& blockgrid_ );
Variable2D ( const Variable2D<DTyp>& other );
~Variable2D();
~Variable2D();
int getGridId() { return idGrid; } // muss nochmal richtig implementiert werden
int getGridId() { return idGrid; }
void test();
template <class DTyp1>
......@@ -201,10 +203,17 @@ class Variable2D : public Expr2D<Variable2D< DTyp > > {
//! QT-VTK print
void QPrint_VTK(QString DateiName, QString title = QString("myfile"));
//! QT-VTK print with convert
void QPrint_VTK(QString DateiName,
double ( *convert ) ( std::complex<double> x ),
QString title = QString("myfile"));
//! Prints in VTK using std, auch vector bei complex ...
void Print_VTK ( std::ostream& Datei, std::string title = "myData");
void Print_VTK ( std::ostream& Datei,
double ( *convert ) ( std::complex<double> x ),
std::string title = "myData");
// copy of data from hex_a to hex_b
void Copy_invert_z ( int hex_b, Variable2D<DTyp>& a, int hex_a );
......@@ -272,8 +281,12 @@ class Variable2D : public Expr2D<Variable2D< DTyp > > {
// copies data from a in hex_a to data in hex_b
void Copy_invert_z ( int hex_b, Variable2D<DTyp> a, int hex_a );
int getTotalNumberData() const { return totalNumberData; }
private:
int getTotalNumberData() const { return totalNumberData; }
protected:
Blockgrid2D* blockgrid;
Unstructured2DGrid* ug;
inline DTyp* give_startTotal() const { assert(dataTotal!=NULL); return dataTotal; }
void allocateData();
......@@ -283,8 +296,7 @@ class Variable2D : public Expr2D<Variable2D< DTyp > > {
void setValueAtRectangularPoint(DTyp val, int id, int i, int j, int Nx) { data_rectangles[id][i+ ( Nx+1 ) *j] = val; }
Blockgrid2D* blockgrid;
Unstructured2DGrid* ug;
// own data
DTyp** data_rectangles; // num_rectangles
......@@ -315,6 +327,8 @@ class Variable2D : public Expr2D<Variable2D< DTyp > > {
int totalNumberData;
DTyp* dataTotal;
};
/* @} */
template <class DTyp>
......
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