Changeset 8816


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

some final problems

Location:
issm/trunk/src/c/modules
Files:
7 edited

Legend:

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

    r5772 r8816  
    1010#include "../../EnumDefinitions/EnumDefinitions.h"
    1111
    12 void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int analysis_type){
     12void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int configuration_type){
    1313
    1414        int i;
     
    2121
    2222        /*figure out how many dofs we have: */
    23         numberofdofs=nodes->NumberOfDofs(analysis_type,SsetEnum);
     23        numberofdofs=nodes->NumberOfDofs(configuration_type,SsetEnum);
    2424
    2525        /*allocate:*/
    2626        ys=NewVec(numberofdofs);
    2727
    28         /*go through all nodes, and for the ones corresponding to this analysis_type, fill the
     28        /*go through all nodes, and for the ones corresponding to this configuration_type, fill the
    2929         * constraints vector with the constraint values: */
    3030        for (i=0;i<nodes->Size();i++){
    3131                Node* node=(Node*)nodes->GetObjectByOffset(i);
    32                 if (node->InAnalysis(analysis_type)){
     32                if (node->InAnalysis(configuration_type)){
    3333                        node->CreateNodalConstraints(ys);
    3434                }
  • issm/trunk/src/c/modules/CreateNodalConstraintsx/CreateNodalConstraintsx.h

    r5772 r8816  
    99
    1010/* local prototypes: */
    11 void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int analysis_type);
     11void CreateNodalConstraintsx( Vec* pys, Nodes* nodes,int configuration_type);
    1212
    1313#endif  /* _CREATENODALCONSTRAINTSX_H */
    14 
  • issm/trunk/src/c/modules/GroundingLineMigrationx/GroundingLineMigrationxUtils.cpp

    r8303 r8816  
    7878        double*  potential_sheet_ungrounding=NULL;
    7979        int      numnods;
    80         int      analysis_type;
     80        int      configuration_type;
    8181
    8282        /*recover parameters: */
    83         parameters->FindParam(&analysis_type,AnalysisTypeEnum);
     83        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    8484       
    8585        /*First, initialize vec_new_shelf_nodes, which will track which nodes have changed status: */
    86         numnods=nodes->NumberOfNodes(analysis_type);
     86        numnods=nodes->NumberOfNodes(configuration_type);
    8787        vec_potential_sheet_ungrounding=NewVec(numnods);
    8888
     
    270270        int i;
    271271        Element* element=NULL;
    272         int analysis_type;
     272        int configuration_type;
    273273        int numnods;
    274274        Vec vec_new_shelf_nodes=NULL;
     
    280280
    281281        /*recover parameters: */
    282         parameters->FindParam(&analysis_type,AnalysisTypeEnum);
     282        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    283283
    284284        /*First, initialize vec_new_shelf_nodes, which will track which nodes have changed status: */
    285         numnods=nodes->NumberOfNodes(analysis_type);
     285        numnods=nodes->NumberOfNodes(configuration_type);
    286286        vec_new_shelf_nodes=NewVec(numnods);
    287287
     
    313313}
    314314/*}}}*/
    315 Vec        CreateNodesOnIceShelf(Nodes* nodes,int analysis_type){ //{{{1
     315Vec CreateNodesOnIceShelf(Nodes* nodes,int configuration_type){ //{{{1
    316316
    317317        /*output: */
     
    325325
    326326        /*First, initialize nodes_on_iceshelf, which will track which nodes have changed status: */
    327         numnods=nodes->NumberOfNodes(analysis_type);
     327        numnods=nodes->NumberOfNodes(configuration_type);
    328328        nodes_on_iceshelf=NewVec(numnods);
    329329
     
    331331        for(i=0;i<nodes->Size();i++){
    332332                node=(Node*)nodes->GetObjectByOffset(i);
    333                 if(node->InAnalysis(analysis_type)){
     333                if(node->InAnalysis(configuration_type)){
    334334                        if(node->IsOnShelf()){
    335335                                VecSetValue(nodes_on_iceshelf,node->Sid(),1.0,INSERT_VALUES);
  • issm/trunk/src/c/modules/NodesDofx/NodesDofx.cpp

    r5772 r8816  
    1010#include "../../EnumDefinitions/EnumDefinitions.h"
    1111
    12 void NodesDofx(Nodes* nodes, Parameters* parameters,int analysis_type){
     12void NodesDofx(Nodes* nodes, Parameters* parameters,int configuration_type){
    1313
    1414        int noerr=1;
     
    1717       
    1818        /*Do we have any nodes for this analysis type? :*/
    19         if(nodes->NumberOfNodes(analysis_type)){
     19        if(nodes->NumberOfNodes(configuration_type)){
    2020
    2121                /*Ensure that only for each cpu, the partition border nodes only will be taken into account once
    2222                 * across the cluster. To do so, we flag all the clone nodes: */
    23                 nodes->FlagClones(analysis_type);
     23                nodes->FlagClones(configuration_type);
    2424
    2525                /*Go through all nodes, and build degree of freedom lists. Each node gets a fixed number of dofs. When
    2626                 *a  node has already been distributed dofs on one cpu, all other cpus with the same node cannot distribute it
    2727                 *anymore. Use clone field to be sure of that: */
    28                 nodes->DistributeDofs(analysis_type,GsetEnum);
    29                 nodes->DistributeDofs(analysis_type,FsetEnum);
    30                 nodes->DistributeDofs(analysis_type,SsetEnum);
     28                nodes->DistributeDofs(configuration_type,GsetEnum);
     29                nodes->DistributeDofs(configuration_type,FsetEnum);
     30                nodes->DistributeDofs(configuration_type,SsetEnum);
    3131        }
    3232
  • 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:*/
  • issm/trunk/src/c/modules/Reducevectorgtosx/Reducevectorgtosx.cpp

    r8799 r8816  
    1313        /*variables: */
    1414        int i;
    15         int analysis_type;
    1615        int configuration_type;
    1716        int ssize;
     
    2019        /*first figure out ssize: */
    2120        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    22         parameters->FindParam(&analysis_type,AnalysisTypeEnum);
    2321        ssize=nodes->NumberOfDofs(configuration_type,SsetEnum);
    2422
     
    3028                ys=NewVec(ssize);
    3129
    32                 if(nodes->NumberOfNodes(analysis_type)){
     30                if(nodes->NumberOfNodes(configuration_type)){
    3331
    3432                        /*serialize yg, so nodes can index into it: */
     
    4139
    4240                                /*Check that this node corresponds to our analysis currently being carried out: */
    43                                 if (node->InAnalysis(analysis_type)){
     41                                if (node->InAnalysis(configuration_type)){
    4442
    4543                                        /*For this object, reduce values for enum set Fset: */
     
    4846                        }
    4947                }
     48                /*Assemble vector: */
     49                VecAssemblyBegin(ys);
     50                VecAssemblyEnd(ys);
    5051        }
    51 
    52         /*Assemble vector: */
    53         VecAssemblyBegin(ys);
    54         VecAssemblyEnd(ys);
    5552
    5653        /*Free ressources:*/
  • issm/trunk/src/c/modules/UpdateSpcsx/UpdateSpcsx.cpp

    r8799 r8816  
    1313       
    1414        int i;
    15         int analysis_type;
     15        int configuration_type;
    1616        double* ys_serial=NULL;
    1717
    1818        /*retrieve parameters: */
    19         parameters->FindParam(&analysis_type,AnalysisTypeEnum);
     19        parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
    2020
    21         if(nodes->NumberOfNodes(analysis_type)){
     21        if(nodes->NumberOfNodes(configuration_type)){
    2222
    2323                /*serialize ys, so nodes can index into it: */
     
    3030
    3131                        /*Check that this node corresponds to our analysis currently being carried out: */
    32                         if (node->InAnalysis(analysis_type)){
     32                        if (node->InAnalysis(configuration_type)){
    3333
    3434                                /*For this object, reset values of spc fields in the node: */
Note: See TracChangeset for help on using the changeset viewer.