Changeset 774


Ignore:
Timestamp:
06/04/09 14:39:02 (15 years ago)
Author:
Mathieu Morlighem
Message:

bad initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/Control/CreateParametersControl.cpp

    r772 r774  
    116116        ModelFetchData((void**)&control_parameter,NULL,NULL,model_handle,model->control_type,"Matrix","Mat");
    117117
    118         u_g=(double*)xcalloc(model->numberofnodes*2,sizeof(double));
     118        u_g=(double*)xcalloc(model->numberofnodes*3,sizeof(double));
    119119        if(vx)for(i=0;i<model->numberofnodes;i++)u_g[3*i+0]=vx[i]/model->yts;
    120120        if(vy)for(i=0;i<model->numberofnodes;i++)u_g[3*i+1]=vy[i]/model->yts;
Note: See TracChangeset for help on using the changeset viewer.