<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 22, 2018 at 6:15 AM, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com" target="_blank">dalcinl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>> wrote:<br>
>><br>
>><br>
>> <a href="ftp://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2018/03/21/examples_master_arch-linux-cxx-cmplx-pkgs-64idx_churn.log" rel="noreferrer" target="_blank">ftp://ftp.mcs.anl.gov/pub/<wbr>petsc/nightlylogs/archive/<wbr>2018/03/21/examples_master_<wbr>arch-linux-cxx-cmplx-pkgs-<wbr>64idx_churn.log</a><br>
>><br>
>> The thing is, PETSc does not currently have a way of mapping a plain 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></blockquote><div><br></div><div>What I meant was, we already have a typedef 'PetscMPIInt' which is supposed</div><div>to reproduce MPI_INT, so why not add PETSC_MPI_INT to the PetscDataTypes</div><div>rather than map MPI_INT to PetscEnum?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--<br>
Lisandro Dalcin<br>
============<br>
Research Scientist<br>
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)<br>
Extreme Computing Research Center (ECRC)<br>
King Abdullah University of Science and Technology (KAUST)<br>
<a href="http://ecrc.kaust.edu.sa/" rel="noreferrer" target="_blank">http://ecrc.kaust.edu.sa/</a><br>
<br>
4700 King Abdullah University of Science and Technology<br>
al-Khawarizmi Bldg (Bldg 1), Office # 0109<br>
Thuwal 23955-6900, Kingdom of Saudi Arabia<br>
<a href="http://www.kaust.edu.sa" rel="noreferrer" target="_blank">http://www.kaust.edu.sa</a><br>
<br>
Office Phone: <a href="tel:%2B966%2012%20808-0459" value="+966128080459">+966 12 808-0459</a><br>
</blockquote></div><br><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>