<div dir="ltr">Forgot to mention, it is a structured cartesian non-uniform mesh.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 2, 2016 at 8:31 PM, praveen kumar <span dir="ltr"><<a href="mailto:praveenpetsc@gmail.com" target="_blank">praveenpetsc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div><br><div><p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial">I am employing PETSc for
DD in a serial fortran code</span> and I would be using the solver from serial
code itself. In my programme there is subroutine which reads an input file for
the grids. I have two questions:</p><p class="MsoNormal"><br></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial">1. The input file contains : No. of segments in
each direction, Length of each segment, Grid expansion ratio for each segment,
dx(min) and dx(max) (min and max size of sub-division for each segment), No. of
uniform sub-divisions in each segment. Will I be able to include all these
details in DMDAcreate3D? Is there any
example? If no, then is there any way to retain the input file section and still
use PETSc?</span></p><p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial"><br></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial">2. Moreover application
requires that, I call the Grid subroutine after some fixed number of iterations.
</span></p><p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial"><br></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial">Would you suggest how to
fix the above two?</span></p><p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial"><br></span></p><p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial">Thanks,</span></p><p class="MsoNormal"><span style="font-size:9.5pt;line-height:115%;font-family:Arial,sans-serif;background-image:initial;background-repeat:initial">Praveen</span></p></div></div></div>
</blockquote></div><br></div>