Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abort_ice does not pass an error code to MPI_abort #8

Closed
aidanheerdegen opened this issue Mar 2, 2018 · 7 comments
Closed

abort_ice does not pass an error code to MPI_abort #8

aidanheerdegen opened this issue Mar 2, 2018 · 7 comments

Comments

@aidanheerdegen
Copy link
Contributor

This is the same issue Martin Dix discovered:

https://accessdev.nci.org.au/trac/ticket/318

The call signature for MPI_Abort is
https://www.open-mpi.org/doc/v1.10/man3/MPI_Abort.3.php

MPI_ABORT(COMM, ERRORCODE, IERROR)            
    INTEGER        COMM, ERRORCODE, IERROR
comm
Communicator of tasks to abort.
errorcode
Error code to return to invoking environment.

It is called here:
https://github.com/OceansAus/cice5/blob/master/mpi/ice_exit.F90#L61
but the value of ierr is not set in the routine, so it is whatever it was initialised to by the compiler.

They had a similar issue with oasis_abort:

https://portal.enes.org/oasis/faq-forum/oasis3-forum/real-coupled-models/548853210

Apparently they decided oasis_abort should default to a non-zero value, it is an abort call after all.

@aidanheerdegen
Copy link
Contributor Author

Any objections to this being merged? @nicjhan @aekiss @marshallward

@marshallward
Copy link
Contributor

looks OK to me.

@marshallward
Copy link
Contributor

BTW how was this even able to build with two arguments? Isn't MPI_Abort a three-argument function?

@aidanheerdegen
Copy link
Contributor Author

Yes it is and I don't know

@aidanheerdegen
Copy link
Contributor Author

As you can imagine @marshallward, this was rather confusing to payu. I have a related issue over on the oasis repo

COSIMA/oasis3-mct#2

@russfiedler
Copy link
Contributor

russfiedler commented Mar 2, 2018 via email

@nichannah
Copy link
Contributor

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants