00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00025
00026
00027
00028
00030
00031
00032
00033
00034 #ifdef COMP_GNUOLD
00035 #include <iostream.h>
00036 #include <fstream.h>
00037 #include <math.h>
00038 #include <time.h>
00039 #else
00040 #include <iostream>
00041 #include <fstream>
00042 #include <cmath>
00043 #include <ctime>
00044 #endif
00045
00046 #ifdef WITH_BRICK
00047
00048
00049 #include "../parser.h"
00050
00051
00052 #include "../paramete.h"
00053 #include "../abbrevi.h"
00054 #include "../math_lib/math_lib.h"
00055
00056
00057 #include "../basic/basic.h"
00058
00059
00060 #include "../domain/domain.h"
00061
00062
00063 #include "../formulas/boundy.h"
00064 #include "../formulas/loc_sten.h"
00065
00066
00067 #include "brick.h"
00068
00069
00070 #include "gpar.h"
00071 #include "parallel.h"
00072 #include "mgcoeff.h"
00073 #include "sto_man.h"
00074 #include "gridbase.h"
00075 #include "grid.h"
00076
00077
00078 BrickInfo *Grid_base::getBrickInfo() {
00079
00080 D3vector v_WSD;
00081 D3vector v_ENT;
00082
00083 BrickInfo *brick_info;
00084 BInfoT brick;
00085 int result_len;
00086 int ierror;
00087
00088
00089 brick_info = new BrickInfo();
00090
00091 iterate_hash_proc {
00092 if(point_proc!=NULL) {
00093 if(point_proc->Give_Index().Tiefe()==n_parallel) {
00094 v_WSD = transform_coord(
00095 point_proc->Give_Index().neighbour(WSDd).coordinate());
00096 v_ENT = transform_coord(
00097 point_proc->Give_Index().neighbour(ENTd).coordinate());
00098
00099 brick.localXMin[0] = v_WSD.x - finest_meshsize * 0.5;
00100 brick.localXMin[1] = v_WSD.y - finest_meshsize * 0.5;
00101 brick.localXMin[2] = v_WSD.z - finest_meshsize * 0.5;
00102
00103 brick.localXMax[0] = v_ENT.x - finest_meshsize * 0.5;
00104 brick.localXMax[1] = v_ENT.y - finest_meshsize * 0.5;
00105 brick.localXMax[2] = v_ENT.z - finest_meshsize * 0.5;
00106
00107 brick.eps = finest_meshsize * 0.001;
00108 brick.rank = point_proc->Give_num_proc();
00109 brick_info->add(brick);
00110 }
00111 }
00112 }
00113 return brick_info;
00114 }
00115 #endif