Ignore:
Timestamp:
05/15/18 13:42:52 (7 years ago)
Author:
seroussi
Message:

NEW: starting to interpolate data between ice and ocean grids

File:
1 edited

Legend:

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

    r22647 r22778  
    1616        bool dakota_analysis;
    1717        bool adolc_analysis;
     18        bool isoceancoupling;
    1819        int nnat,dummy;
    1920        int* nature=NULL;
     
    2425        iomodel->FindConstant(&materials_type,"md.materials.type");
    2526        iomodel->FindConstant(&adolc_analysis,"md.autodiff.isautodiff");
     27        iomodel->FindConstant(&isoceancoupling,"md.transient.isoceancoupling");
    2628
    2729        /*Did we already create the elements? : */
     
    232234        if (iomodel->domaintype == Domain3DsurfaceEnum) iomodel->FetchData(3,"md.mesh.lat","md.mesh.long","md.mesh.r");
    233235        else iomodel->FetchDataToInput(elements,"md.mesh.scale_factor",MeshScaleFactorEnum,1.);
     236        if (isoceancoupling) iomodel->FetchData(2,"md.mesh.lat","md.mesh.long");
    234237       
    235238        CreateNumberNodeToElementConnectivity(iomodel,solution_type);
     
    242245        iomodel->DeleteData(6,"md.mesh.x","md.mesh.y","md.mesh.z","md.geometry.base","md.geometry.thickness","md.mask.ice_levelset");
    243246        if (iomodel->domaintype == Domain3DsurfaceEnum) iomodel->DeleteData(3,"md.mesh.lat","md.mesh.long","md.mesh.r");
     247        if (isoceancoupling) iomodel->DeleteData(2,"md.mesh.lat","md.mesh.long");
    244248}
Note: See TracChangeset for help on using the changeset viewer.