Changeset 10544


Ignore:
Timestamp:
11/09/11 07:20:51 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed crash (nodeonstokdes not loaded if 2d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/DiagnosticHoriz/CreateConstraintsDiagnosticHoriz.cpp

    r10537 r10544  
    305305
    306306                        /*Constraint at the bedrock interface (v.n = vz = 0) (Coordinates will be updated according to the bed slope)*/
    307                         if(nodeonbed[i] && nodeonicesheet[i] && nodeonstokes[i]){
    308                                 switch((int)vertices_type[i]){
     307                        if (dim==3) if(nodeonbed[i] && nodeonicesheet[i] && nodeonstokes[i]){
     308                                 switch((int)vertices_type[i]){
    309309                                        case MacAyealStokesApproximationEnum:
    310310                                                constraints->AddObject(new SpcStatic(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,5,0.,DiagnosticHorizAnalysisEnum));
Note: See TracChangeset for help on using the changeset viewer.