- Timestamp:
- 07/06/11 11:58:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/Reducevectorgtofx/Reducevectorgtofx.cpp
r8799 r8816 13 13 /*variables: */ 14 14 int i; 15 int analysis_type;16 15 int configuration_type; 17 16 int fsize; … … 20 19 /*first figure out fsize: */ 21 20 parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 22 parameters->FindParam(&analysis_type,AnalysisTypeEnum);23 21 fsize=nodes->NumberOfDofs(configuration_type,FsetEnum); 22 printf("%s\n",EnumToStringx(configuration_type)); 24 23 25 24 if(fsize==0){ … … 30 29 uf=NewVec(fsize); 31 30 32 if(nodes->NumberOfNodes( analysis_type)){31 if(nodes->NumberOfNodes(configuration_type)){ 33 32 34 33 /*serialize ug, so nodes can index into it: */ … … 41 40 42 41 /*Check that this node corresponds to our analysis currently being carried out: */ 43 if (node->InAnalysis( analysis_type)){42 if (node->InAnalysis(configuration_type)){ 44 43 45 44 /*For this object, reduce values for enum set Fset: */ … … 47 46 } 48 47 } 49 50 48 } 49 /*Assemble vector: */ 50 VecAssemblyBegin(uf); 51 VecAssemblyEnd(uf); 51 52 } 52 53 /*Assemble vector: */54 VecAssemblyBegin(uf);55 VecAssemblyEnd(uf);56 57 53 58 54 /*Free ressources:*/
Note:
See TracChangeset
for help on using the changeset viewer.