Changeset 16082
- Timestamp:
- 09/04/13 21:07:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/mobile/native/Main.cpp
r16076 r16082 70 70 } 71 71 /*}}}*/ 72 void Solve(JNIEnv *env, jclass clazz , jdouble alpha, j double temperature, jobject buf){ /*{{{*/72 void Solve(JNIEnv *env, jclass clazz , jdouble alpha, jobject buf){ /*{{{*/ 73 73 74 74 int i,count; … … 87 87 /*reset basal friction to what it was before: */ 88 88 __android_log_print(ANDROID_LOG_INFO, "Native","alpha %g ",alpha); 89 /*reset basal temperature to what it was before: */90 __android_log_print(ANDROID_LOG_INFO, "Native"," temperature %g ",temperature);89 90 __android_log_print(ANDROID_LOG_INFO, "Native","ok-1"); 91 91 92 92 InputDuplicatex(fm->elements,fm->nodes,fm->vertices,fm->loads,fm->materials,fm->parameters,AndroidFrictionCoefficientEnum,FrictionCoefficientEnum); 93 __android_log_print(ANDROID_LOG_INFO, "Native","ok0"); 93 94 94 95 /*now scale friction by alpha: */ 95 96 InputScalex(fm->elements,fm->nodes,fm->vertices,fm->loads,fm->materials,fm->parameters,FrictionCoefficientEnum,alpha/100); 97 __android_log_print(ANDROID_LOG_INFO, "Native","ok1"); 96 98 97 99 /*solve: */ 98 100 fm -> Solve(); 101 __android_log_print(ANDROID_LOG_INFO, "Native","ok2"); 99 102 100 103 /*retrieve results: */ … … 168 171 { 169 172 {"createISSMModel" ,"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I" , (void *) Initialize}, 170 {"solveISSMModel", "(D DLjava/nio/DoubleBuffer;)V", (void *) Solve}173 {"solveISSMModel", "(DLjava/nio/DoubleBuffer;)V", (void *) Solve} 171 174 }; 172 175 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.