<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="webkit-block-placeholder"></div>  At this point I would say it is time to move on to using dynamically partitioned unstructured<div>mesh representation (note the discretization mesh might still be logically rectangular, it is </div><div>just the partition information is stored as unstructured.)  </div><div><br class="webkit-block-placeholder"></div><div>  With modern processes (not vector machines) it is a myth that a properly written structured</div><div>grid computation is much faster (in terms of flop rate) than using he same discretization on a </div><div>properly written unstructured representation.</div><div><br class="webkit-block-placeholder"></div><div>   Barry</div><div><br class="webkit-block-placeholder"></div><div><br><div><div>On Mar 7, 2008, at 5:21 PM, Mehdi Bostandoost wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi</div>  <div> </div>  <div>I used DA object to write our code for our 3D Reacting flow solver and it was quite useful.</div>  <div>because of the reaction inside the domain,it takes different amount of time to solve stiff equations.In part of the domain,which you don't have reaction, solving equations will be fast,but in the part that you have reaction, it takes much longer time to solve the equation.</div>  <div>therefore,there is inherently load imbalance inside the domain.</div>  <div> </div>  <div>when you use the DA object to decompose the mesh,I could not not find a way to enforce this issue through the DA functions.</div>  <div> </div>  <div>it would be great if you can have a function like</div>  <div> </div>  <div>DACreate1d(MPI_Comm comm,DAPeriodicType wrap,PetscInt M,PetscInt dof,PetscInt s,<strong>PetscInt weight</strong>,PetscInt *lc,DA *inra)</div>  <div> </div>  <div>through using <strong>weight, </strong>or something like that, you can dynamically balance your domain as you march in time.(for example after each 50 iterations,you can time your code for each sub-domain,and then you can define weight=time_subdomain/time_max_subdomains.)</div>  <div> </div>  <div>Is it possible to have something like this?or do you have any suggestion?</div>  <div> </div>  <div>thanks</div>  <div> </div>  <div>mehdi</div>  <div> </div>  <div> </div>  <div> </div>  <div><br> </div><div>        <br class="webkit-block-placeholder"></div><hr size="1">Never miss a thing.  <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a> </blockquote></div><br></div></body></html>