Ignore:
Timestamp:
04/08/10 08:32:04 (15 years ago)
Author:
seroussi
Message:

more cleaning on ModelProcessor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateConstraintsDiagnosticStokes.cpp

    r3454 r3456  
    1515        DataSet* constraints = NULL;
    1616        Spc*    spc  = NULL;
    17         int count;
    18 
    19         /*spc intermediary data: */
    20         double* gridonstokes=NULL;
     17        int count=0;
    2118
    2219        /*Create constraints: */
     
    2724
    2825        /*Fetch data: */
    29         IoModelFetchData(&gridonstokes,NULL,NULL,iomodel_handle,"gridonstokes");
     26        IoModelFetchData(&iomodel->gridonstokes,NULL,NULL,iomodel_handle,"gridonstokes");
    3027
    3128        count=1; //matlab indexing
     
    3532                if((iomodel->my_vertices[i]==1)){
    3633
    37                         if ((int)!gridonstokes[i]){
     34                        if ((int)!iomodel->gridonstokes[i]){
    3835
    3936                                /*This grid will see its vx,vy and vz dofs spc'd to pattyn velocities: */
     
    5047        }
    5148
     49        /*Free data: */
     50        xfree((void**)&iomodel->gridonstokes);
     51
    5252        /*All our datasets are already order by ids. Set presort flag so that later on, when sorting is requested on these
    5353         * datasets, it will not be redone: */
    5454        constraints->Presort();
    55 
    56         /*Free data: */
    57         xfree((void**)&gridonstokes);
    5855
    5956        cleanup_and_return:
Note: See TracChangeset for help on using the changeset viewer.