Changeset 20590


Ignore:
Timestamp:
05/04/16 10:16:07 (9 years ago)
Author:
Mathieu Morlighem
Message:

BUG: could not read large floats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Exp/exp.h

    r16235 r20590  
    8989                if(fscanf(fid,"%255s %255s\n",chardummy,chardummy)!=2) _error_("Could not read " << domainname);
    9090                //## Icon:0
    91                 if(fscanf(fid,"%255s %255s\n",chardummy,chardummy)!=2) _error_("Could not read " << domainname);
     91                if(fscanf(fid,"%255s %255s\n",chardummy,chardummy)!=2) _error_("Could not read " << domainname<<"(Expecting ## Icon:0 and read "<<chardummy<<")");
    9292                //# Points Count Value
    9393                if(fscanf(fid,"%255s %255s %255s %255s\n",chardummy,chardummy,chardummy,chardummy)!=4) _error_("Could not read " << domainname);
     
    9696                if(fscanf(fid,"%255s %255s %255s %255s %255s\n",chardummy,chardummy,chardummy,chardummy,chardummy)!=5) _error_("Could not read " << domainname);
    9797                for (i=0;i<n;i++){
    98                         if(fscanf(fid,"%20lf %20lf\n",&ddummy,&ddummy)!=2){
     98                        if(fscanf(fid,"%30lf %30lf\n",&ddummy,&ddummy)!=2){
    9999                                _error_("Could not read coordinate of vertex "<< i <<" of "<<domainname);
    100100                        }
     
    142142                /*Read vertices: */
    143143                for (i=0;i<n;i++){
    144                         if(fscanf(fid,"%20lf %20lf\n",&x[i],&y[i])!=2){
     144                        if(fscanf(fid,"%30lf %30lf\n",&x[i],&y[i])!=2){
    145145                                _error_("Could not read coordinate of vertex "<<i<<" of "<<domainname);
    146146                        }
Note: See TracChangeset for help on using the changeset viewer.