Ignore:
Timestamp:
06/01/10 14:51:09 (15 years ago)
Author:
Eric.Larour
Message:

First attempt at fusioning all models together

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/Balancedthickness2/CreateElementsNodesAndMaterialsBalancedthickness2.cpp

    r3913 r3984  
    3737        /*elements created vary if we are dealing with a 2d mesh, or a 3d mesh: */
    3838        /*2d mesh: */
    39         if (strcmp(iomodel->meshtype,"2d")==0){
     39        if (iomodel->dim==2){
    4040
    4141                /*Fetch data needed: */
     
    7777
    7878        }
    79         else{ //        if (strcmp(meshtype,"2d")==0)
     79        else{ //        if (dim==2)
    8080                ISSMERROR("not implemented yet");
    81         } //if (strcmp(meshtype,"2d")==0)
     81        } //if (dim==2)
    8282
    8383        /*Add new constrant material property tgo materials, at the end: */
     
    9595        IoModelFetchData(&iomodel->gridonicesheet,NULL,NULL,iomodel_handle,"gridonicesheet");
    9696        IoModelFetchData(&iomodel->gridoniceshelf,NULL,NULL,iomodel_handle,"gridoniceshelf");
    97         if (strcmp(iomodel->meshtype,"3d")==0){
     97        if (iomodel->dim==3){
    9898                IoModelFetchData(&iomodel->deadgrids,NULL,NULL,iomodel_handle,"deadgrids");
    9999                IoModelFetchData(&iomodel->uppernodes,NULL,NULL,iomodel_handle,"uppergrids");
Note: See TracChangeset for help on using the changeset viewer.