Ignore:
Timestamp:
07/04/13 10:44:52 (12 years ago)
Author:
Mathieu Morlighem
Message:

NEW: mesh properties (elements,dim,numberofvertices,...) are now Iomodel fields and fetch in the constructor. This cleans up ModelProcessor and will ease the implementation of quadratic elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/DiagnosticHutter/CreateConstraintsDiagnosticHutter.cpp

    r15000 r15428  
    1111
    1212        /*Intermediary*/
    13         int i;
    14         int count;
     13        int        count;
    1514        IssmDouble yts;
    16         int    numberofvertices;
    17         bool   ishutter;
     15        bool       ishutter;
    1816
    1917        /*Output*/
     
    2624        /*Fetch parameters: */
    2725        iomodel->Constant(&yts,ConstantsYtsEnum);
    28         iomodel->Constant(&numberofvertices,MeshNumberofverticesEnum);
    2926        iomodel->Constant(&ishutter,FlowequationIshutterEnum);
    3027
     
    4542
    4643        /*vx and vy are spc'd if we are not on nodeonhutter: */
    47         for (i=0;i<numberofvertices;i++){
     44        for(int i=0;i<iomodel->numberofvertices;i++){
    4845                /*keep only this partition's nodes:*/
    4946                if((iomodel->my_vertices[i])){
Note: See TracChangeset for help on using the changeset viewer.