Changeset 17007
- Timestamp:
- 12/04/13 19:53:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Vertex.cpp
r16447 r17007 132 132 133 133 /*sigma remains constant. z=bed+sigma*thickness*/ 134 if(this->meshtype==Mesh2DverticalEnum){ 135 oldy = this->y; 136 newy = bed[this->pid]+sigma*(surface[this->pid] - bed[this->pid]); 137 vely = (newy-oldy)/dt; 138 this->y = newy; 139 vy->SetValue(this->pid,vely,INS_VAL); 140 } 141 else{ 142 oldz = this->z; 143 newz = bed[this->pid]+sigma*(surface[this->pid] - bed[this->pid]); 144 velz = (newz-oldz)/dt; 145 this->z = newz; 146 vz->SetValue(this->pid,velz,INS_VAL); 134 switch(this->meshtype){ 135 case Mesh2DhorizontalEnum: 136 /*Nothing*/ 137 return; 138 case Mesh2DverticalEnum: 139 oldy = this->y; 140 newy = bed[this->pid]+sigma*(surface[this->pid] - bed[this->pid]); 141 vely = (newy-oldy)/dt; 142 this->y = newy; 143 vy->SetValue(this->pid,vely,INS_VAL); 144 return; 145 case Mesh3DEnum: 146 oldz = this->z; 147 newz = bed[this->pid]+sigma*(surface[this->pid] - bed[this->pid]); 148 velz = (newz-oldz)/dt; 149 this->z = newz; 150 vz->SetValue(this->pid,velz,INS_VAL); 151 return; 152 default: 153 _error_("not implemented"); 147 154 } 148 155 }
Note:
See TracChangeset
for help on using the changeset viewer.