Ignore:
Timestamp:
04/24/09 10:38:58 (16 years ago)
Author:
Mathieu Morlighem
Message:

initial input from ice1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/ice/ModelProcessorPrognostic.m

    r1 r32  
    116116loads=struct('load',cell([0,1]));
    117117
    118 %Single point constraints: none;
    119 constraints=struct('constraint',cell(0,0));
     118
     119%Initialize constraints structure
     120constraints=struct('constraint',cell(length(find(md.gridondirichlet_prog)),1));
     121
     122pos=find(md.gridondirichlet_prog);
     123count=1;
     124for i=1:length(find(md.gridondirichlet_prog)),
     125
     126                %constrain the thickness
     127                constraints(count).constraint=spc;
     128                constraints(count).constraint.grid=pos(i);
     129                constraints(count).constraint.dof=1;
     130                constraints(count).constraint.value=md.dirichletvalues_prog(pos(i)); %in m
     131                count=count+1;
     132end
    120133
    121134%Last thing, return a partitioning vector, and its transpose.
Note: See TracChangeset for help on using the changeset viewer.