Changeset 3812


Ignore:
Timestamp:
05/18/10 13:21:19 (15 years ago)
Author:
seroussi
Message:

need to create singlenodetoelementconnectivity field in iomodel

File:
1 edited

Legend:

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

    r3784 r3812  
    2121
    2222        /*output*/
    23         double* connectivity=NULL;
     23        int* connectivity=NULL;
    2424
    2525        /*Some checks if debugging*/
     
    2929
    3030        /*Allocate ouput*/
    31         connectivity=(double*)xcalloc(iomodel->numberofvertices,sizeof(double));
     31        connectivity=(int*)xcalloc(iomodel->numberofvertices,sizeof(int));
    3232
    3333        if (strcmp(iomodel->meshtype,"2d")==0){
     
    4949                }
    5050        }
     51
     52        iomodel->singlenodetoelementconnectivity=connectivity;
     53
     54        /*Do not free connectivity!!!*/
    5155}
Note: See TracChangeset for help on using the changeset viewer.