[petsc-dev] MPI_Attr_get test fails
Mark Adams
mfadams at lbl.gov
Sat Feb 10 11:06:29 CST 2018
On Fri, Feb 9, 2018 at 9:39 PM, Jeff Hammond <jeff.science at gmail.com> wrote:
> https://msdn.microsoft.com/en-us/library/dn473234(v=vs.85).aspx
>
> This function name is archaic and removed in MPI-3. Use the new name.
>
>
OK, Jed did this a few months ago.
It still fails because my code uses PETSC_COMM_WORLD. I guess I need to
change that.
Thanks,
> Jeff
>
> On Fri, Feb 9, 2018 at 3:11 PM Mark Adams <mfadams at lbl.gov> wrote:
>
>> I get an error in PetscCommGetNewTag. So I copied the test to may main
>> and I get the same problem. So this code fails:
>>
>> int main( int argc, char **args )
>> {
>> PetscErrorCode ierr;
>> ierr = PetscInitialize( &argc, &args, "./.petscrc", NULL
>> );CHKERRQ(ierr);
>> { // debug
>> PetscCommCounter *counter;
>> PetscMPIInt flg;
>> ierr = MPI_Attr_get(PETSC_COMM_WORLD,Petsc_Counter_keyval,&counter,
>> &flg);CHKERRQ(ierr);
>> if (!flg) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_CORRUPT,"Bad MPI
>> communicator supplied ???????????????");
>> }
>>
>> Any ideas?
>>
>> Mark
>>
> --
> Jeff Hammond
> jeff.science at gmail.com
> http://jeffhammond.github.io/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20180210/da877fc6/attachment.html>
More information about the petsc-dev
mailing list