Changeset 6715


Ignore:
Timestamp:
12/10/10 09:14:32 (14 years ago)
Author:
seroussi
Message:

fixed some problems in MacAyealStokes constraints

File:
1 edited

Legend:

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

    r6412 r6715  
    126126                        else if ((int)iomodel->vertices_type[i]==MacAyealStokesApproximationEnum){
    127127                                /*If grion,pattyn spc stokes dofs: 3 4 & 5*/
    128                                         if ((int)iomodel->gridonpattyn[i]){
     128                                        if ((int)iomodel->gridonmacayeal[i]){
    129129                                                constraints->AddObject(new Spc(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,3,0,DiagnosticHorizAnalysisEnum)); //add count'th spc, on node i+1, setting dof 1 to vx.
    130130                                                count++;
     
    143143
    144144                                        }
    145                                         else if ((int)iomodel->gridonstokes[i]){ //spc pattyn grids: 1 & 2
     145                                        else if ((int)iomodel->gridonstokes[i]){ //spc macayeal grids: 1 & 2
    146146                                                constraints->AddObject(new Spc(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,1,0,DiagnosticHorizAnalysisEnum)); //add count'th spc, on node i+1, setting dof 1 to vx.
    147147                                                count++;
     
    161161                                                }
    162162                                        }
    163                                         else _error_("if vertices_type is MacAyealStokes, you shoud have gridonpattyn or gridonstokes");
     163                                        else _error_("if vertices_type is MacAyealStokes, you shoud have gridonmacayeal or gridonstokes");
    164164                        }
    165165                        /*Now add the regular spcs*/
Note: See TracChangeset for help on using the changeset viewer.