Changeset 4452


Ignore:
Timestamp:
07/07/10 16:56:31 (15 years ago)
Author:
seroussi
Message:

some fixing in icefront

Location:
issm/trunk/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Loads/Icefront.cpp

    r4396 r4452  
    641641        Node**   nodes=NULL;
    642642        Element* element=NULL;
    643         int     element_type;
    644                
    645643
    646644        /*quad grids: */
     
    664662       
    665663        /*check icefront is associated to a pentaelem: */
    666         if(element_type!=PentaEnum){
    667                 ISSMERROR(" quad icefront is associated to a TriaElem!");
    668         }
     664        if(element->Enum()!=PentaEnum) ISSMERROR("Only Penta supported yet");
    669665
    670666        /* Get dof list and node coordinates: */
     
    673669       
    674670        //Identify which grids are comprised in the quad:
    675         if(element_type==PentaEnum)element_nodes=(Node**)xmalloc(6*sizeof(Node*));
     671        element_nodes=(Node**)xmalloc(6*sizeof(Node*));
    676672        element->GetNodes((void**)element_nodes);
    677673
  • issm/trunk/src/c/solutions/stokescontrolinit.cpp

    r4356 r4452  
    5151
    5252        if(verbose)_printf_("%s\n"," update boundary conditions for stokes using velocities previously computed...");
    53         ResetBoundaryConditions(femmodel,DiagnosticAnalysisEnum,StokesAnalysisEnum);
     53        ResetBoundaryConditions(femmodel,DiagnosticStokesAnalysisEnum);
    5454
    5555        if(verbose)_printf_("%s\n"," computing stokes velocities and pressure ...");
Note: See TracChangeset for help on using the changeset viewer.