How embarrassing; I got it backwards!  :-(

Thanks for pointing this out; I have updated the slides on the web site to be 
correct.

Sidenote: on putting "implicit none" in the mpi module -- I remember that we 
talked about this, and decided that even though it would be a good thing for 
users, it's not a good idea for us to force our programming style ideas on 
users.


On Nov 21, 2014, at 4:19 AM, <michael.rach...@dlr.de> <michael.rach...@dlr.de> 
wrote:

> Dear community,
> 
> Slide 92 of the OpenMPI Sc'14  slides describes the simple migration from   
> mpif.h    to   use mpi    in a  Fortran application code.
> 
> However the description is not correct.
> In a Fortran routine, the use-stmts (if there are) must come before (!) any 
> other stmts,
> i.e. you cannot place the   implicit none    before the    use mpif90    .
> 
> Correct is only this:
> 
> subroutine foo      -->     subroutine foo
>  include 'mpif.h'                 use mpi
>  implicit none                     implicit none
>  integer  a, ...                     integer  a, ...
> 
> 
> However (for the developers of the mpi-module), you can (and should!!) employ 
> the    implicit none  -stmt inside the mpi-module itself:
> 
> module mpi
>    implicit none
>    integer MPI_...
> contains
>    ...
> end module mpi
> 
> 
> Greetings
> Michael Rachner     
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: users [mailto:users-boun...@open-mpi.org] Im Auftrag von Jeff Squyres 
> (jsquyres)
> Gesendet: Donnerstag, 20. November 2014 16:48
> An: Open MPI User's List; Open MPI Developers List
> Betreff: [OMPI users] Open MPI SC'14 BOF slides
> 
> For those of you who weren't able to be at the SC'14 BOF yesterday -- and 
> even for those of you who were there and wanted to be able to read the slides 
> in a little more detail (and get the links from the slides) -- I have posted 
> them here:
> 
>    http://www.open-mpi.org/papers/sc-2014/
> 
> Enjoy!
> 
> -- 
> Jeff Squyres
> jsquy...@cisco.com
> For corporate legal information go to: 
> http://www.cisco.com/web/about/doing_business/legal/cri/
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2014/11/25849.php
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2014/11/25854.php


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to