Changeset 23578


Ignore:
Timestamp:
12/28/18 13:23:38 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: some checks in iomodel and isautodiff is a constant, not a dataset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/classes/IoModel.cpp

    r23570 r23578  
    454454
    455455        /*Initialize array detecting whether data[i] is an independent AD mode variable: */
    456         this->FetchData(&autodiff,"md.autodiff.isautodiff");
    457         this->FetchData(&iscontrol,"md.inversion.iscontrol");
     456        this->FetchConstants(&autodiff,"md.autodiff.isautodiff");
     457        this->FetchConstants(&iscontrol,"md.inversion.iscontrol");
    458458
    459459        if(trace || (autodiff && !iscontrol)){
     
    25372537                _error_("Cannot fetch \""<<data_name<<"\" does not start with \""<<mddot<<"\"");
    25382538        }
     2539        if(fid==NULL){
     2540                _error_("Cannot fetch \""<<data_name<<"\": file pointer invalid ");
     2541        }
    25392542
    25402543        /*Go find in the binary file, the position of the data we want to fetch: */
Note: See TracChangeset for help on using the changeset viewer.