source: issm/oecreview/Archive/23390-24306/ISSM-23577-23578.diff

Last change on this file was 24307, checked in by Mathieu Morlighem, 5 years ago

NEW: adding Archive/23390-24306

File size: 977 bytes
  • ../trunk-jpl/src/c/classes/IoModel.cpp

     
    453453        int *types = NULL;
    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)){
    460460
     
    25362536        if(strncmp(data_name,mddot,3)!=0){
    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: */
    25412544        if(my_rank==0){
Note: See TracBrowser for help on using the repository browser.