Ignore:
Timestamp:
04/09/14 13:15:54 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: starting to change iomodel->domaintype to iomodel->meshelementtype when necessary (useful for Tetras)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/MeshPartitionx/MeshPartitionx.h

    r17686 r17692  
    1111template <class doubletype>
    1212int MeshPartitionx(int** pepart, int** pnpart, int numberofelements,int numberofnodes,int* elements,
    13                 int numberofelements2d,int numberofnodes2d,doubletype* elements2d,int numlayers,int elements_width, int domaintype,int num_procs){
     13                int numberofelements2d,int numberofnodes2d,doubletype* elements2d,int numlayers,int elements_width, int meshelementtype,int num_procs){
    1414
    1515        int noerr=1;
     
    3131        int  edgecut=1;
    3232
    33         switch(domaintype){
    34                 case Mesh2DhorizontalEnum:
    35                 case Mesh2DverticalEnum:
    36                 case Mesh3DtetrasEnum:
     33        switch(meshelementtype){
     34                case TriaEnum:
     35                case TetraEnum:
    3736                        epart=xNew<int>(numberofelements);
    3837                        npart=xNew<int>(numberofnodes);
     
    5958                        else _error_("At least one processor is required");
    6059                        break;
    61                 case Mesh3DEnum:
     60                case PentaEnum:
    6261                        /*We have a 3d mesh, made of a regularly extruded 2d mesh. We first partition the 2d mesh, then we extrude the partition: */
    6362
     
    111110                        break;
    112111                default:
    113                         _error_("mesh type "<<EnumToStringx(domaintype)<<" not supported yet");
     112                        _error_("mesh type "<<EnumToStringx(meshelementtype)<<" not supported yet");
    114113        }
    115114
Note: See TracChangeset for help on using the changeset viewer.