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/CreateNodesDiagnosticHutter.cpp

    r15000 r15428  
    1212
    1313        /*Intermediary*/
    14         int i;
    15         bool continuous_galerkin=true;
    16         int    numberofvertices;
    17         bool   ishutter;
     14        bool continuous_galerkin = true;
     15        bool ishutter;
    1816
    1917        /*Fetch parameters: */
    20         iomodel->Constant(&numberofvertices,MeshNumberofverticesEnum);
    2118        iomodel->Constant(&ishutter,FlowequationIshutterEnum);
    2219
     
    3734
    3835        /*First fetch data: */
    39         iomodel->FetchData(7,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,MeshElementsEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);
     36        iomodel->FetchData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);
    4037
    41         for (i=0;i<numberofvertices;i++){
     38        for(int i=0;i<iomodel->numberofvertices;i++){
    4239                if(iomodel->my_vertices[i]){
    4340
     
    4946
    5047        /*Clean fetched data: */
    51         iomodel->DeleteData(7,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,MeshElementsEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);
     48        iomodel->DeleteData(6,MeshVertexonbedEnum,MeshVertexonsurfaceEnum,MaskVertexongroundediceEnum,MaskVertexonfloatingiceEnum,FlowequationVertexEquationEnum,MaskVertexonwaterEnum);
    5249
    5350        /*Assign output pointer: */
Note: See TracChangeset for help on using the changeset viewer.