Changeset 3444


Ignore:
Timestamp:
04/07/10 17:07:16 (15 years ago)
Author:
Eric.Larour
Message:

debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/DiagnosticVert/CreateConstraintsDiagnosticVert.cpp

    r3443 r3444  
    1414        int i;
    1515        DataSet* constraints = NULL;
     16        int count=0;
    1617
    1718        /*Create constraints: */
     
    2526
    2627        /*Create spcs from x,y,z, as well as the spc values on those spcs: */
     28        count=1;
    2729        for (i=0;i<iomodel->numberofvertices;i++){
    2830
     
    3032                if(iomodel->my_vertices[i]){
    3133
    32                         if ((int)spcvelocity[6*i+2]){
     34                        if ((int)iomodel->spcvelocity[6*i+2]){
    3335                                constraints->AddObject(new Spc(count,i+1,1,*(iomodel->spcvelocity+6*i+5)/iomodel->yts)); //add count'th spc, on node i+1, setting dof 1 to vx.
     36                                count++;
    3437
    3538                        }
    36                 } //if((my_grids[i]==1))
     39                }
    3740        }
    3841
     
    4144        constraints->Presort();
    4245
     46        cleanup_and_return:
    4347        /*Free data: */
    4448        xfree((void**)&iomodel->spcvelocity);
    45        
     49
    4650        /*Assign output pointer: */
    4751        *pconstraints=constraints;
Note: See TracChangeset for help on using the changeset viewer.