Changeset 16229


Ignore:
Timestamp:
09/23/13 10:13:00 (11 years ago)
Author:
utke
Message:

CHG revert for this file only the change done with 16201 - as discussed with Eric - it is likely inappropriate to use the counts of indepedents and dependents to control the logic when e.g. in IoModel.cpp there is

this->FetchData(&autodiff,AutodiffIsautodiffEnum);
if(autodiff)

etc, Also, removing the guard right now causes the logic to fail for the parallel adjoint because in fact only on rank 0 have explicit dependent and independent designation been made and that needs to be reflected exactly on the falls to the Adol-C tape interpreters. Without the guard these interpreters complain (legitimatly) like this:

ADOL-C error: Reverse sweep on tape 2 aborted!

Number of dependents(1) and/or independents(91)
variables passed to reverse is inconsistent
with number recorded on tape(0/0)!

ADOL-C error: Reverse sweep on tape 1 aborted!

Number of dependents(1) and/or independents(91)
variables passed to reverse is inconsistent
with number recorded on tape(0/0)!

File:
1 edited

Legend:

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

    r16201 r16229  
    4646
    4747                        /*preliminary checks: */
    48                         femmodel->parameters->FindParam(&num_dependents,AutodiffNumDependentsEnum);
    49                         femmodel->parameters->FindParam(&num_independents,AutodiffNumIndependentsEnum);
    50                         if(!(num_dependents*num_independents)) return;
     48                        if (my_rank==0) {
     49                                femmodel->parameters->FindParam(&num_dependents,AutodiffNumDependentsEnum);
     50                                femmodel->parameters->FindParam(&num_independents,AutodiffNumIndependentsEnum);
     51                                if(!(num_dependents*num_independents)) return;
     52                        }
    5153
    5254                        if(VerboseAutodiff())_printf0_("   start ad core\n");
Note: See TracChangeset for help on using the changeset viewer.