Changeset 23514


Ignore:
Timestamp:
12/06/18 20:57:59 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: moving epart to iomodel

Location:
issm/trunk-jpl/src/c/modules/ModelProcessorx
Files:
3 edited

Legend:

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

    r23505 r23514  
    1515#include "../ModelProcessorx/ModelProcessorx.h"
    1616
    17 void  ElementsAndVerticesPartitioning(bool** pmy_elements,bool** pmy_vertices,IoModel* iomodel){
     17void  ElementsAndVerticesPartitioning(IoModel* iomodel){
    1818
    1919        int numberofelements2d;
     
    3333
    3434        /*First, check that partitioning has not yet been carryed out. Just check whether my_elements pointers is not already assigned a value: */
    35         if(*pmy_elements) return;
     35        if(iomodel->my_elements) return;
    3636
    3737        /*Number of vertices per elements, needed to correctly retrieve data: */
     
    120120        xDelete<int>(vertex_pairing);
    121121
    122         /*cleanup and assign output pointer*/
    123         xDelete<int>(epart);
    124         *pmy_elements=my_elements;
    125         *pmy_vertices=my_vertices;
     122        /*Assign pointers to iomodel*/
     123        iomodel->epart      =epart;
     124        iomodel->my_elements=my_elements;
     125        iomodel->my_vertices=my_vertices;
    126126}
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/ModelProcessorx.cpp

    r23493 r23514  
    4040
    4141        /*Partition Elements and Nodes*/
    42         ElementsAndVerticesPartitioning(&iomodel->my_elements,&iomodel->my_vertices,iomodel);
     42        ElementsAndVerticesPartitioning(iomodel);
    4343
    4444        /*Create elements, vertices and materials, independent of analysis_enum: */
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/ModelProcessorx.h

    r23505 r23514  
    2525
    2626/*partitioning: */
    27 void ElementsAndVerticesPartitioning(bool** pmy_elements,bool** pmy_vertices, IoModel* iomodel);
     27void ElementsAndVerticesPartitioning(IoModel* iomodel);
    2828void DiscontinuousGalerkinNodesPartitioning(bool** pmy_nodes,bool* my_elements,bool* my_vertices,  IoModel* iomodel);
    2929void FacesPartitioning(IoModel* iomodel);
Note: See TracChangeset for help on using the changeset viewer.