Ignore:
Timestamp:
07/06/11 11:58:06 (14 years ago)
Author:
Mathieu Morlighem
Message:

some final problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/Reducevectorgtofx/Reducevectorgtofx.cpp

    r8799 r8816  
    1313        /*variables: */
    1414        int i;
    15         int analysis_type;
    1615        int configuration_type;
    1716        int fsize;
     
    2019        /*first figure out fsize: */
    2120        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    22         parameters->FindParam(&analysis_type,AnalysisTypeEnum);
    2321        fsize=nodes->NumberOfDofs(configuration_type,FsetEnum);
     22        printf("%s\n",EnumToStringx(configuration_type));
    2423
    2524        if(fsize==0){
     
    3029                uf=NewVec(fsize);
    3130
    32                 if(nodes->NumberOfNodes(analysis_type)){
     31                if(nodes->NumberOfNodes(configuration_type)){
    3332
    3433                        /*serialize ug, so nodes can index into it: */
     
    4140
    4241                                /*Check that this node corresponds to our analysis currently being carried out: */
    43                                 if (node->InAnalysis(analysis_type)){
     42                                if (node->InAnalysis(configuration_type)){
    4443
    4544                                        /*For this object, reduce values for enum set Fset: */
     
    4746                                }
    4847                        }
    49 
    5048                }
     49                /*Assemble vector: */
     50                VecAssemblyBegin(uf);
     51                VecAssemblyEnd(uf);
    5152        }
    52 
    53         /*Assemble vector: */
    54         VecAssemblyBegin(uf);
    55         VecAssemblyEnd(uf);
    56 
    5753
    5854        /*Free ressources:*/
Note: See TracChangeset for help on using the changeset viewer.