Changeset 14086
- Timestamp:
- 12/01/12 22:45:59 (12 years ago)
- Location:
- issm/trunk-jpl/src/android/ISSM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/android/ISSM/jni/Main.cpp
r14084 r14086 54 54 } 55 55 /*}}}*/ 56 void solve(JNIEnv *env, jclass clazz , jintalpha, jobject buf) /*{{{*/56 void Solve(JNIEnv *env, jclass clazz , jdouble alpha, jobject buf) /*{{{*/ 57 57 { 58 58 /*fill out the first two slots, extract the same way in java using get(int position)*/ … … 60 60 61 61 //pass bBuff to fem model to allocate data 62 // fm -> solve(dBuf, alpha); 62 // fm -> Solve(dBuf, alpha); 63 fm -> Solve(); 63 64 64 65 }/*}}}*/ … … 74 75 {"fac" , "(J)J" , (void *) factorial}, 75 76 {"createISSMModel" ,"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I" , (void *) initialize}, 76 {" processBuffer", "(ILjava/nio/DoubleBuffer;)V", (void *) solve}77 {"solveISSMModel", "(DLjava/nio/DoubleBuffer;)V", (void *) Solve} 77 78 }; 78 79 /*}}}*/ -
issm/trunk-jpl/src/android/ISSM/src/com/example/issm/ISSM.java
r14082 r14086 68 68 public void fillBuffer() 69 69 { 70 issmNative. processBuffer(5,buff);70 issmNative.solveISSMModel(5,buff); 71 71 } 72 72 //------------------------------------------------------------------------------------------------ -
issm/trunk-jpl/src/android/ISSM/src/com/example/issm/IssmJni.java
r14081 r14086 5 5 { 6 6 public native long fac(long n); 7 public native void processBuffer(intalpha, DoubleBuffer buff);7 public native void solveISSMModel(double alpha, DoubleBuffer buff); 8 8 public native int createISSMModel(String solution_type, String absfile, String relfile); 9 9 static
Note:
See TracChangeset
for help on using the changeset viewer.