Changeset 8809


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

Mergesolutionfromftogx requires configuration also

Location:
issm/trunk/src/c
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Container/Nodes.cpp

    r8224 r8809  
    203203}
    204204/*}}}*/
    205 /*FUNCTION Nodes::FlagNodeSets{{{1*/
    206 void Nodes::FlagNodeSets(Vec pv_g, Vec pv_f, Vec pv_s,int analysis_type){
    207 
    208         int i;
    209 
    210         for(i=0;i<this->Size();i++){
    211 
    212                 Node* node=(Node*)this->GetObjectByOffset(i);
    213                        
    214                 /*Check that this node corresponds to our analysis currently being carried out: */
    215                 if (node->InAnalysis(analysis_type)){
    216 
    217                         /*Plug set values intp our 4 set vectors: */
    218                         node->CreateVecSets(pv_g,pv_f,pv_s);
    219                 }
    220         }
    221 
    222         /*Assemble: */
    223         VecAssemblyBegin(pv_g);
    224         VecAssemblyEnd(pv_g);
    225 
    226         VecAssemblyBegin(pv_f);
    227         VecAssemblyEnd(pv_f);
    228 
    229         VecAssemblyBegin(pv_s);
    230         VecAssemblyEnd(pv_s);
    231 
    232 }
    233 /*}}}*/
    234205/*FUNCTION Nodes::MaxNumDofs{{{1*/
    235206int   Nodes::MaxNumDofs(int analysis_type,int setenum){
  • issm/trunk/src/c/Container/Nodes.h

    r6411 r8809  
    2222                void  DistributeDofs(int analysis_type,int SETENUM);
    2323                void  FlagClones(int analysis_type);
    24                 void  FlagNodeSets(Vec pv_g, Vec pv_f, Vec pv_s,int analysis_type);
    2524                int   MaxNumDofs(int analysis_type,int setenum);
    2625                int   NumberOfDofs(int analysis_type,int setenum);
  • issm/trunk/src/c/modules/Mergesolutionfromftogx/Mergesolutionfromftogx.cpp

    r8799 r8809  
    1313        /*intermediary: */
    1414        int configuration_type;
    15         int analysis_type;
    1615        int gsize,fsize,ssize;
    1716
     
    2120        /*first, get gsize, fsize and ssize: */
    2221        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    23         parameters->FindParam(&analysis_type,AnalysisTypeEnum);
    2422        gsize=nodes->NumberOfDofs(configuration_type,GsetEnum);
    2523        fsize=nodes->NumberOfDofs(configuration_type,FsetEnum);
  • issm/trunk/src/c/modules/VecMergex/VecMergex.cpp

    r8799 r8809  
    1414        /*variables: */
    1515        int i;
    16         int analysis_type, configuration_type;
     16        int configuration_type;
    1717        double* uf_serial=NULL;
    1818
    1919        /*retrieve parameters: */
    20         parameters->FindParam(&analysis_type,AnalysisTypeEnum);
    2120        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    2221       
     
    2423        VecToMPISerial(&uf_serial,uf);
    2524
    26         /*Do we have any nodes for this analysis type? :*/
    27         if(nodes->NumberOfNodes(analysis_type)){
     25        /*Do we have any nodes for this configuration? :*/
     26        if(nodes->NumberOfNodes(configuration_type)){
    2827
    2928                /*yes. Go through all nodes, and ask them to retrieve values from uf, and plug them into ug: */
     
    3231                        Node* node=(Node*)nodes->GetObjectByOffset(i);
    3332
    34                         /*Check that this node corresponds to our analysis currently being carried out: */
    35                         if (node->InAnalysis(analysis_type)){
     33                        /*Check that this node corresponds to our configuration currently being carried out: */
     34                        if (node->InAnalysis(configuration_type)){
    3635
    3736                                /*For this object, merge values for enum set SetEnum: */
Note: See TracChangeset for help on using the changeset viewer.