root/ompi/mpi/java/c/mpi_Count.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. Java_mpi_Count_initCount

   1 /*
   2  * Copyright (c) 2015      Los Alamos National Security, LLC. All rights
   3  *                         reserved.
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  *
  10  *
  11  * This file is almost a complete re-write for Open MPI compared to the
  12  * original mpiJava package. Its license and copyright are listed below.
  13  * See <path to ompi/mpi/java/README> for more information.
  14  *
  15  *
  16  *  Licensed under the Apache License, Version 2.0 (the "License");
  17  *  you may not use this file except in compliance with the License.
  18  *  You may obtain a copy of the License at
  19  *
  20  *     http://www.apache.org/licenses/LICENSE-2.0
  21  *
  22  *  Unless required by applicable law or agreed to in writing, software
  23  *  distributed under the License is distributed on an "AS IS" BASIS,
  24  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  25  *  See the License for the specific language governing permissions and
  26  *  limitations under the License.
  27  *
  28  *
  29  * File         : Version.java
  30  * Author       : Nathaniel Graham
  31  * Created      : Thu Jul  30 09:34 2015
  32  */
  33 
  34 #include "ompi_config.h"
  35 
  36 #include <stdlib.h>
  37 #ifdef HAVE_TARGETCONDITIONALS_H
  38 #include <TargetConditionals.h>
  39 #endif
  40 
  41 #include "mpi.h"
  42 #include "mpi_Count.h"
  43 #include "mpiJava.h"
  44 
  45 JNIEXPORT void JNICALL Java_mpi_Count_initCount(JNIEnv *env, jclass jthis)
  46 {
  47         jclass c = (*env)->FindClass(env, "mpi/Count");
  48         ompi_java.CountClass = (*env)->NewGlobalRef(env, c);
  49         ompi_java.CountInit = (*env)->GetMethodID(env, ompi_java.CountClass, "<init>", "(J)V");
  50 
  51         (*env)->DeleteLocalRef(env, c);
  52 }

/* [<][>][^][v][top][bottom][index][help] */