Changeset 21587


Ignore:
Timestamp:
03/02/17 20:27:30 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added spc dynamic for P1xP3

File:
1 edited

Legend:

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

    r21563 r21587  
    662662                                }
    663663                                break;
     664                        case P1xP3Enum:
     665                                for(i=0;i<iomodel->numberofvertices;i++){
     666                                        if((iomodel->my_vertices[i])){
     667                                                if (!xIsNan<IssmDouble>(spcdata[i])){
     668                                                        constraints->AddObject(new SpcDynamic(iomodel->constraintcounter+count+1,iomodel->nodecounter+i+1,dof,analysis_type));
     669                                                        count++;
     670                                                }
     671                                        }
     672                                }
     673                                for(i=0;i<iomodel->numberofedges;i++){
     674                                        if(iomodel->edges[i*3+2]==2){
     675                                                if(my_edges[i]){
     676                                                        v1 = iomodel->edges[3*i+0]-1;
     677                                                        v2 = iomodel->edges[3*i+1]-1;
     678                                                        if(!xIsNan<IssmDouble>(spcdata[v1]) && !xIsNan<IssmDouble>(spcdata[v2])){
     679                                                                constraints->AddObject(new SpcDynamic(iomodel->constraintcounter+count+1,iomodel->nodecounter+iomodel->numberofvertices+2*i+1,
     680                                                                                                dof,analysis_type));
     681                                                                constraints->AddObject(new SpcDynamic(iomodel->constraintcounter+count+2,iomodel->nodecounter+iomodel->numberofvertices+2*i+2,
     682                                                                                                dof,analysis_type));
     683                                                                count=count+2;
     684                                                        }
     685                                                }
     686                                        }
     687                                }
     688                                break;
    664689                        default:
    665690                                _error_("Finite element "<<EnumToStringx(finite_element)<<" not supported yet");
Note: See TracChangeset for help on using the changeset viewer.