1 /*
2 * Copyright (c) 2004-2007 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 * This file is almost a complete re-write for Open MPI compared to the
20 * original mpiJava package. Its license and copyright are listed below.
21 * See <path to ompi/mpi/java/README> for more information.
22 */
23 /*
24 Licensed under the Apache License, Version 2.0 (the "License");
25 you may not use this file except in compliance with the License.
26 You may obtain a copy of the License at
27
28 http://www.apache.org/licenses/LICENSE-2.0
29
30 Unless required by applicable law or agreed to in writing, software
31 distributed under the License is distributed on an "AS IS" BASIS,
32 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 See the License for the specific language governing permissions and
34 limitations under the License.
35 */
36
37 /*
38 * File : mpi_Errhandler.c
39 * Headerfile : mpi_Errhandler.h
40 * Author : Bryan Carpenter
41 * Created : 1999
42 * Revision : $Revision: 1.2 $
43 * Updated : $Date: 2001/08/07 16:36:15 $
44 * Copyright: Northeast Parallel Architectures Center
45 * at Syracuse University 1998
46 */
47 #include "ompi_config.h"
48
49 #ifdef HAVE_TARGETCONDITIONALS_H
50 #include <TargetConditionals.h>
51 #endif
52
53 #include <mpi.h>
54 #include "mpi_Errhandler.h"
55 #include "mpiJava.h"
56
57 JNIEXPORT jlong JNICALL Java_mpi_Errhandler_getFatal(JNIEnv *env, jclass clazz)
58 {
59 return (jlong)MPI_ERRORS_ARE_FATAL;
60 }
61
62 JNIEXPORT jlong JNICALL Java_mpi_Errhandler_getReturn(JNIEnv *env, jclass clazz)
63 {
64 return (jlong)MPI_ERRORS_RETURN;
65 }