73 const Domaine& madomaine = mon_dom_.valeur();
74 const Domaine& dom = madomaine;
75 int nb_sz,nb_marq_sz, old_size, dim;
80 for (
int i=0; i<nb_sz; i++)
87 int le_poly,poly,le_som;
89 double xmoy,ymoy,zmoy,deltax,deltay,deltaz;
90 double xmin,xmax,ymin,ymax,zmin,zmax;
91 xmin = ymin = zmin = 1.e8;
92 xmax = ymax = zmax= -1.e8;
114 for (le_poly=0; le_poly<nb_elem; le_poly++)
115 for(le_som=0; le_som<nb_som; le_som++)
144 xmoy = (xmax+xmin)/2.;
145 ymoy = (ymax+ymin)/2.;
146 zmoy = (zmax+zmin)/2.;
148 deltax = (xmax-xmin)/2.;
149 deltay = (ymax-ymin)/2.;
150 deltaz = (zmax-zmin)/2.;
154 soms_tmp.
resize(old_size+nb_marq_sz,dim);
162 for (marq=0; marq<nb_marq_sz; marq++)
164 soms_tmp(old_size+marq,0) = xmoy + deltax*(-1.+2.*drand48());
165 soms_tmp(old_size+marq,1) = ymoy + deltay*(-1.+2.*drand48());
167 soms_tmp(old_size+marq,2) = zmoy + deltaz*(-1.+2.*drand48());
176 dx = 2.*deltax/double(nx_max+1);
177 dy = 2.*deltay/double(ny_max+1);
181 for (
int ny=1; ny<ny_max+1; ny++)
182 for (
int nx=1; nx<nx_max+1; nx++)
184 marq = nx + (ny-1)*nx_max-1;
185 soms_tmp(old_size+marq,0) = xmin + nx*dx;
186 soms_tmp(old_size+marq,1) = ymin + ny*dy;
192 dz = 2.*deltaz/double(nz_max+1);
193 for (
int nz=1; nz<nz_max+1; nz++)
194 for (
int ny=1; ny<ny_max+1; ny++)
195 for (
int nx=1; nx<nx_max+1; nx++)
197 marq = nx + (ny-1)*nx_max + (nz-1)*nx_max*ny_max-1;
198 soms_tmp(old_size+marq,0) = xmin + nx*dx;
199 soms_tmp(old_size+marq,1) = ymin + ny*dy;
200 soms_tmp(old_size+marq,2) = zmin + nz*dz;
210 envoyer(soms_tmp,0, p, 0);
212 recevoir(soms_tmp,0,p,0);
const Sous_Domaine_t & ss_domaine(int i) const
int nb_som_elem() const
Renvoie le nombre de sommets des elements geometriques constituants le domaine.
double coord(int_t i, int j) const
int_t sommet_elem(int_t i, int j) const
Renvoie le numero (global) du j-ieme sommet du i-ieme element.
int_t nb_elem_tot() const