Changeset 16115
- Timestamp:
- 09/10/13 14:36:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/ad_core.cpp
r16114 r16115 24 24 int i; 25 25 int dummy; 26 int num_dependents ;27 int num_independents ;26 int num_dependents=0; 27 int num_independents=0; 28 28 bool isautodiff = false; 29 29 char *driver = NULL; … … 47 47 48 48 /*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 } 52 54 53 55 if(VerboseAutodiff())_printf0_(" start ad core\n");
Note:
See TracChangeset
for help on using the changeset viewer.