[Nek5000-users] Nek MPI subroutine

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Thu Jan 8 07:12:49 CST 2015


Pradeep,

This file is used only when compiling with mpi turned off.


________________________________
From: nek5000-users-bounces at lists.mcs.anl.gov [nek5000-users-bounces at lists.mcs.anl.gov] on behalf of nek5000-users at lists.mcs.anl.gov [nek5000-users at lists.mcs.anl.gov]
Sent: Wednesday, January 07, 2015 6:02 PM
To: Nek5000
Subject: [Nek5000-users] Nek MPI subroutine

Hello,

I don't understand the following subroutine in the Nek mpi_dummy.f file:

---------------------------------------------------------------------------------------------------------
      subroutine mpi_comm_rank ( comm, me, ierror )

      implicit none

      integer comm
      integer ierror
      integer me
      integer MPI_FAILURE
      parameter ( MPI_FAILURE = 1 )
      integer MPI_SUCCESS
      parameter ( MPI_SUCCESS = 0 )

      ierror = MPI_SUCCESS
      me = 0

      return
      end
---------------------------------------------------------------------------------------------------------

This will always return one. How does this give the rank of the process then? Can someone please explain the reason for this function?

Thanks,
Pradeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20150108/81557031/attachment.html>


More information about the Nek5000-users mailing list