~ubuntu-branches/ubuntu/hardy/openmpi/hardy-updates

« back to all changes in this revision

Viewing changes to ompi/mpi/f77/attr_delete_f.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-10-15 00:46:11 UTC
  • Revision ID: james.westby@ubuntu.com-20061015004611-uuhxnaxyjmuxfd5h
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
 
3
 *                         University Research and Technology
 
4
 *                         Corporation.  All rights reserved.
 
5
 * Copyright (c) 2004-2005 The University of Tennessee and The University
 
6
 *                         of Tennessee Research Foundation.  All rights
 
7
 *                         reserved.
 
8
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
 
9
 *                         University of Stuttgart.  All rights reserved.
 
10
 * Copyright (c) 2004-2005 The Regents of the University of California.
 
11
 *                         All rights reserved.
 
12
 * $COPYRIGHT$
 
13
 * 
 
14
 * Additional copyrights may follow
 
15
 * 
 
16
 * $HEADER$
 
17
 */
 
18
 
 
19
#include "ompi_config.h"
 
20
 
 
21
#include "ompi/mpi/f77/bindings.h"
 
22
 
 
23
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILE_LAYER
 
24
#pragma weak PMPI_ATTR_DELETE = mpi_attr_delete_f
 
25
#pragma weak pmpi_attr_delete = mpi_attr_delete_f
 
26
#pragma weak pmpi_attr_delete_ = mpi_attr_delete_f
 
27
#pragma weak pmpi_attr_delete__ = mpi_attr_delete_f
 
28
#elif OMPI_PROFILE_LAYER
 
29
OMPI_GENERATE_F77_BINDINGS (PMPI_ATTR_DELETE,
 
30
                           pmpi_attr_delete,
 
31
                           pmpi_attr_delete_,
 
32
                           pmpi_attr_delete__,
 
33
                           pmpi_attr_delete_f,
 
34
                           (MPI_Fint *comm, MPI_Fint *keyval, MPI_Fint *ierr),
 
35
                           (comm, keyval, ierr) )
 
36
#endif
 
37
 
 
38
#if OMPI_HAVE_WEAK_SYMBOLS
 
39
#pragma weak MPI_ATTR_DELETE = mpi_attr_delete_f
 
40
#pragma weak mpi_attr_delete = mpi_attr_delete_f
 
41
#pragma weak mpi_attr_delete_ = mpi_attr_delete_f
 
42
#pragma weak mpi_attr_delete__ = mpi_attr_delete_f
 
43
#endif
 
44
 
 
45
#if ! OMPI_HAVE_WEAK_SYMBOLS && ! OMPI_PROFILE_LAYER
 
46
OMPI_GENERATE_F77_BINDINGS (MPI_ATTR_DELETE,
 
47
                           mpi_attr_delete,
 
48
                           mpi_attr_delete_,
 
49
                           mpi_attr_delete__,
 
50
                           mpi_attr_delete_f,
 
51
                           (MPI_Fint *comm, MPI_Fint *keyval, MPI_Fint *ierr),
 
52
                           (comm, keyval, ierr) )
 
53
#endif
 
54
 
 
55
 
 
56
#if OMPI_PROFILE_LAYER && ! OMPI_HAVE_WEAK_SYMBOLS
 
57
#include "ompi/mpi/f77/profile/defines.h"
 
58
#endif
 
59
 
 
60
void mpi_attr_delete_f(MPI_Fint *comm, MPI_Fint *keyval, MPI_Fint *ierr)
 
61
{
 
62
    MPI_Comm c_comm;
 
63
    c_comm = MPI_Comm_f2c(*comm);
 
64
 
 
65
    *ierr = OMPI_INT_2_FINT(MPI_Attr_delete(c_comm, 
 
66
                                            OMPI_FINT_2_INT(*keyval)));
 
67
}