Changeset 1707


Ignore:
Timestamp:
08/14/09 13:43:31 (15 years ago)
Author:
seroussi
Message:

cleaned initialization of control method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/parallel/ControlInitialization.cpp

    r1671 r1707  
    9191        inputs->Add("bedslopex",slopex,numberofdofspernode_sl,numberofnodes);
    9292        inputs->Add("bedslopey",slopey,numberofdofspernode_sl,numberofnodes);
     93        VecFree(&slopex); VecFree(&slopey);
    9394
    9495        /*2: run a complete diagnostic to update spcs*/
     
    114115        VecMerge(ug,ug_horiz,dofsetgen(2,&dof01[0],3,numberofnodes*3),numberofnodes*2);
    115116        VecMerge(ug,ug_vert,dofsetgen(1,&dof2[0],3,numberofnodes*3),numberofnodes*1);
     117        VecFree(&ug_vert); VecFree(&ug_horiz);
    116118
    117119        //Create 4d u_g
     
    125127        //Add in inputs
    126128        inputs->Add("velocity",ug_stokes,numberofdofspernode_ds,numberofnodes);
     129        VecFree(&ug_stokes);
    127130
    128131        //update spcs
     
    140143        //Add in inputs
    141144        inputs->Add("velocity",ug,numberofdofspernode_ds,numberofnodes);
     145        VecFree(&ug);
    142146
    143147        /*Assign output*/
Note: See TracChangeset for help on using the changeset viewer.