Changeset 323


Ignore:
Timestamp:
05/08/09 14:43:02 (16 years ago)
Author:
seroussi
Message:

fixed problems in ModelProcessor Hutter

Location:
issm/trunk/src/c/ModelProcessorx/DiagnosticHutter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/DiagnosticHutter/CreateConstraintsDiagnosticHutter.cpp

    r308 r323  
    5454        #endif
    5555
    56                 if ((int)model->gridonhutter[i]){
     56                if (!(int)model->gridonhutter[i]){
    5757       
    5858                        spc_sid=count;
  • issm/trunk/src/c/ModelProcessorx/DiagnosticHutter/CreateElementsNodesAndMaterialsDiagnosticHutter.cpp

    r318 r323  
    231231                                        matice_mid=i+1; //same as the material id from the geom2 elements.
    232232                                        matice_B=model->B[i];   
    233                                         matice_n=(double)model->n[i];
     233                                        matice_n=(double)model->n[1]; //n defined on elements not grids, so take the first value everywhere
    234234                               
    235235                                        /*Create matice ubeam its constructor:*/
     
    332332                node=new Node(node_id,node_partitionborder,node_numdofs,node_x,node_onbed,node_onsurface,node_upper_node_id);
    333333
    334                 /*set single point constraints.: */
    335                 if (strcmp(model->meshtype,"3d")==0){
    336                         /*On a 3d mesh, we may have collapsed elements, hence dead grids. Freeze them out: */
    337                         if (model->deadgrids[i]){
    338                                 for(k=1;k<=node_numdofs;k++){
    339                                         node->FreezeDof(k);
    340                                 }
    341                         }
    342                 }
    343334                /*Add node to nodes dataset: */
    344335                nodes->AddObject(node);
Note: See TracChangeset for help on using the changeset viewer.