<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 22, 2018 at 8:28 AM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> writes:<br>
<br>
> On Thu, Mar 22, 2018 at 7:09 AM, Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br>
><br>
>> Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> writes:<br>
>><br>
>> > On Thu, Mar 22, 2018 at 6:15 AM, Lisandro Dalcin <<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>><br>
>> wrote:<br>
>> ><br>
>> >> On 22 March 2018 at 12:51, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
>> >> > On Thu, Mar 22, 2018 at 3:44 AM, Lisandro Dalcin <<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>><br>
>> >> wrote:<br>
>> >> >><br>
>> >> >><br>
>> >> >> <a href="ftp://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/" rel="noreferrer" target="_blank">ftp://ftp.mcs.anl.gov/pub/<wbr>petsc/nightlylogs/archive/</a><br>
>> >> 2018/03/21/examples_master_<wbr>arch-linux-cxx-cmplx-pkgs-<wbr>64idx_churn.log<br>
>> >> >><br>
>> >> >> The thing is, PETSc does not currently have a way of mapping a plain<br>
>> C<br>
>> >> >> `int` type to a PETSc datatype. I'm wiling to take the required work<br>
>> >> >> to fix this issue.<br>
>> >> ><br>
>> >> ><br>
>> >> > Is this not what PetscMPIInt is for?<br>
>> >> ><br>
>> >><br>
>> >> No, not at all, PetscMPIInt it not even mentioned in the PetscDatatype<br>
>> >> enumeration. The whole PetscDatatype this is kind of messy, and fixing<br>
>> >> it should take some time, and this for sure will no make my h-index<br>
>> >> explode, right?. For now, mapping MPI_INT -> PETSC_ENUM seems<br>
>> >> workaround the issue just fine.<br>
>> >><br>
>> ><br>
>> > What I meant was, we already have a typedef 'PetscMPIInt' which is<br>
>> supposed<br>
>> > to reproduce MPI_INT, so why not add PETSC_MPI_INT to the PetscDataTypes<br>
>> > rather than map MPI_INT to PetscEnum?<br>
>><br>
>> <a href="https://bitbucket.org/petsc/petsc/issues/188/remove-use-of-petscdatatype" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/<wbr>petsc/issues/188/remove-use-<wbr>of-petscdatatype</a><br>
>><br>
><br>
> I agree, but this was about short term fixing.<br>
<br>
I guess I'd rather see a quick workaround if someone needs the<br>
capability now instead of expanding an interface that we're trying to<br>
remove.<br>
</blockquote></div><br>Okay. As far as removing it. Why is it complicated? I have not looked closely.</div><div class="gmail_extra"><br></div><div class="gmail_extra">What I imagined was just mapping each Petsc typedef (do we list them all anywhere),</div><div class="gmail_extra">to an MPI type, creating those that are missing (as we do for MPIU_INT). Is there more</div><div class="gmail_extra">to it than that?</div><div class="gmail_extra"><br></div><div class="gmail_extra"> Thanks,</div><div class="gmail_extra"><br></div><div class="gmail_extra"> Matt<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>