Changeset 16115


Ignore:
Timestamp:
09/10/13 14:36:09 (12 years ago)
Author:
utke
Message:

CHG the working assumption is that all independents and dependent
designations happen on rank 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/ad_core.cpp

    r16114 r16115  
    2424        int     i;
    2525        int     dummy;
    26         int     num_dependents;
    27         int     num_independents;
     26        int     num_dependents=0;
     27        int     num_independents=0;
    2828        bool    isautodiff       = false;
    2929        char   *driver           = NULL;
     
    4747
    4848                        /*preliminary checks: */
    49                         femmodel->parameters->FindParam(&num_dependents,AutodiffNumDependentsEnum);
    50                         femmodel->parameters->FindParam(&num_independents,AutodiffNumIndependentsEnum);
    51                         if(!(num_dependents*num_independents)) return;
     49                        if (my_rank==0) {
     50                                femmodel->parameters->FindParam(&num_dependents,AutodiffNumDependentsEnum);
     51                                femmodel->parameters->FindParam(&num_independents,AutodiffNumIndependentsEnum);
     52                                if(!(num_dependents*num_independents)) return;
     53                        }
    5254
    5355                        if(VerboseAutodiff())_printf0_("   start ad core\n");
Note: See TracChangeset for help on using the changeset viewer.