Changeset 13576


Ignore:
Timestamp:
10/09/12 21:14:35 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: vector_type is always broadcasted so it needs to be defined anyway, also, rewrote error message

File:
1 edited

Legend:

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

    r13516 r13576  
    13001300        extern int num_procs;
    13011301
    1302         int found=0;
     1302        int found         = 0;
    13031303        int record_enum;
    13041304        int record_length;
    1305         int record_code; //1 to 7 number
    1306         int vector_type; //nodal or elementary
     1305        int record_code;       //1 to 7 number
     1306        int vector_type   = 0; //nodal or elementary
    13071307
    13081308        /*Go find in the binary file, the position of the data we want to fetch: */
     
    13421342#ifdef _HAVE_MPI_
    13431343        MPI_Bcast(&found,1,MPI_INT,0,MPI_COMM_WORLD);
    1344         if(!found)_error_("could not find data with name" << " " << EnumToStringx(data_enum) << " ");
     1344        if(!found)_error_("could not find data with name " << EnumToStringx(data_enum) << " in binary file");
    13451345#endif
    13461346
Note: See TracChangeset for help on using the changeset viewer.