Ignore:
Timestamp:
09/20/12 16:59:40 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: lots of cleanup

File:
1 edited

Legend:

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

    r13376 r13412  
    228228
    229229        extern int my_rank;
    230         extern int num_procs;
    231230       
    232231        /*record descriptions; */
    233232        int record_enum;
    234233        int record_length;
    235         int record_code; //1 to 7 number
     234        int record_code;     //1 to 7 number
    236235
    237236        /*records: */
    238         int  booleanint=0;
    239         int  integer=0;
    240         IssmPDouble scalar=0;
    241         char* string=NULL;
    242         int   string_size;
     237        int          booleanint  = 0;
     238        int          integer     = 0;
     239        IssmPDouble  scalar      = 0;
     240        char        *string      = NULL;
     241        int          string_size;
    243242
    244243        /*Check that some fields have been allocated*/
     
    458457
    459458        extern int my_rank;
    460         extern int num_procs;
    461        
    462459
    463460        /*output: */
     
    488485
    489486        extern int my_rank;
    490         extern int num_procs;
    491487
    492488        /*output: */
     
    515511void  IoModel::FetchData(IssmDouble* pscalar,int data_enum){
    516512
    517 
    518513        extern int my_rank;
    519         extern int num_procs;
    520        
    521514
    522515        /*output: */
     
    546539
    547540        extern int my_rank;
    548         extern int num_procs;
    549        
    550541
    551542        /*output: */
     
    597588
    598589        extern int my_rank;
    599         extern int num_procs;
    600590        int i,j;
    601591
     
    672662
    673663        extern int my_rank;
    674         extern int num_procs;
    675664
    676665        /*output: */
     
    737726
    738727        extern int my_rank;
    739         extern int num_procs;
    740        
    741728        int i;
    742729
     
    809796
    810797        extern int my_rank;
    811         extern int num_procs;
    812798
    813799        /*output: */
     
    898884void  IoModel::FetchData(Option** poption,int index){
    899885
    900         extern int my_rank;
    901         extern int num_procs;
    902 
    903886        /*output: */
    904         int     code;
    905         char   *name        = NULL;
     887        int   code;
     888        char *name = NULL;
    906889
    907890        /*First get option name*/
     
    12201203
    12211204        extern int my_rank;
    1222         extern int num_procs;
    12231205
    12241206        int found=0;
     
    13151297        #ifdef _HAVE_ADOLC_ //cannot come here unless you are running AD mode, from DeclaredIndependents:
    13161298        extern int my_rank;
    1317         extern int num_procs;
    13181299
    13191300        /*output: */
Note: See TracChangeset for help on using the changeset viewer.