Changeset 14058


Ignore:
Timestamp:
11/29/12 21:29:11 (12 years ago)
Author:
Eric.Larour
Message:

NEW: created new constructor

Location:
issm/trunk-jpl/src
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/android/ISSM/gen/com/example/issm/R.java

    r13890 r14058  
    2222    public static final class id {
    2323        public static final int button1=0x7f080001;
     24        public static final int button2=0x7f080003;
    2425        public static final int input=0x7f080000;
    25         public static final int menu_settings=0x7f080003;
     26        public static final int menu_settings=0x7f080004;
    2627        public static final int output=0x7f080002;
    2728    }
    2829    public static final class layout {
    2930        public static final int activity_issm=0x7f030000;
     31        public static final int activity_mapselection=0x7f030001;
    3032    }
    3133    public static final class menu {
  • issm/trunk-jpl/src/android/ISSM/jni/Main.cpp

    r14046 r14058  
    88{
    99        fac* f;
    10         //FemModel *fm;
     10        FemModel *fm;
    1111//------------------------------------------------------------------------------------
    1212        jint initilize(JNIEnv *env, jclass clazz, jstring file)
    1313        {
    14                 const char *nativefile = env->GetStringUTFChars(file,0);
     14                char *nativefile = (char*)env->GetStringUTFChars(file,0);
    1515
    1616                f = new fac();
    1717
    1818                //call Model constructor passing in infile as File Descriptor parameter.
    19                 // fm  = new FemModel(nativefile);
     19                fm  = new FemModel(nativefile);
    2020
    2121                env->ReleaseStringUTFChars(file, nativefile); //must realease the char*
  • issm/trunk-jpl/src/c/android/fac.cpp

    r13709 r14058  
    1313
    1414/*}}}*/
    15 
     15#include "stdio.h"
    1616long fac::factorial(long n) {
    1717        long f = 1;
    1818        long i;
     19        printf("ok1\n");
    1920       
    2021        for(i = 1; i <= n; i++){
    2122                f *= i;
    2223        }
     24        printf("ok2\n");
    2325       
    2426        return f;
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r14002 r14058  
    2020
    2121/*Object constructors and destructor*/
     22/*FUNCTION FemModel::FemModel(char* filename) {{{*/
     23FemModel::FemModel(char* filename){
     24
     25}
     26/*}}}*/
    2227/*FUNCTION FemModel::FemModel(int argc,char** argv){{{*/
    2328FemModel::FemModel(int argc,char** argv,COMM incomm){
  • issm/trunk-jpl/src/c/classes/FemModel.h

    r13939 r14058  
    4747
    4848                /*constructors, destructors: */
     49                FemModel(char* filename);
    4950                FemModel(int argc,char** argv,COMM comm_init);
    5051                FemModel(char* rootpath, char* inputfilename, char* outputfilename, char* petscfilename, char* lockfilename, const int solution_type,const int* analyses,const int nummodels);
Note: See TracChangeset for help on using the changeset viewer.