Ignore:
Timestamp:
06/03/16 10:05:11 (9 years ago)
Author:
Mathieu Morlighem
Message:

NEW: marhsall strings instead of enums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/main/kriging.cpp

    r20653 r20690  
    144144        IoModel* iomodel = new IoModel();
    145145        iomodel->fid=fid;
    146         iomodel->CheckEnumSync();
    147         iomodel->FetchData(&x,&M,&N,0);        nobs=M*N;
    148         iomodel->FetchData(&y,&M,&N,1);        _assert_(M*N==nobs);
    149         iomodel->FetchData(&data,&M,&N,2);     _assert_(M*N==nobs);
    150         iomodel->FetchData(&x_interp,&M,&N,3); ninterp=M*N;
    151         iomodel->FetchData(&y_interp,&M,&N,4); _assert_(M*N==ninterp);
     146        iomodel->CheckFile();
     147        iomodel->FetchData(&x,&M,&N,"md.0");        nobs=M*N;
     148        iomodel->FetchData(&y,&M,&N,"md.1");        _assert_(M*N==nobs);
     149        iomodel->FetchData(&data,&M,&N,"md.2");     _assert_(M*N==nobs);
     150        iomodel->FetchData(&x_interp,&M,&N,"md.3"); ninterp=M*N;
     151        iomodel->FetchData(&y_interp,&M,&N,"md.4"); _assert_(M*N==ninterp);
    152152
    153153        /*Read options*/
Note: See TracChangeset for help on using the changeset viewer.