Changeset 3559


Ignore:
Timestamp:
04/16/10 14:19:53 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added check

File:
1 edited

Legend:

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

    r3549 r3559  
    176176
    177177        int     i1,i2;
     178        int     cols;
    178179        double  e1,e2;
    179180        int     pos;
     
    212213
    213214        /*Get edges and elements*/
    214         IoModelFetchData(&iomodel->edges,&iomodel->numberofedges,NULL,iomodel_handle,"edges");
     215        IoModelFetchData(&iomodel->edges,&iomodel->numberofedges,&cols,iomodel_handle,"edges");
    215216        IoModelFetchData(&iomodel->elements,NULL,NULL,iomodel_handle,"elements");
     217        if (cols!=4) ISSMERROR("field edges should have 4 columns");
    216218
    217219        /*!All elements have been partitioned above, only create elements for this CPU: */
Note: See TracChangeset for help on using the changeset viewer.