Ignore:
Timestamp:
05/10/10 15:29:06 (15 years ago)
Author:
Eric.Larour
Message:

Added vx,vy,vz, vx_obs,vy_obs,vz_obs,weights in elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r3683 r3687  
    118118                this->inputs->AddInput(new PentaVertexInput(GeothermalFluxEnum,nodeinputs));
    119119        }       
     120
     121        /*vx,vy and vz: */
     122        if (iomodel->vx) {
     123                for(i=0;i<6;i++)nodeinputs[i]=iomodel->vx[penta_node_ids[i]-1];
     124                this->inputs->AddInput(new PentaVertexInput(VxEnum,nodeinputs));
     125        }
     126        if (iomodel->vy) {
     127                for(i=0;i<6;i++)nodeinputs[i]=iomodel->vy[penta_node_ids[i]-1];
     128                this->inputs->AddInput(new PentaVertexInput(VyEnum,nodeinputs));
     129        }
     130        if (iomodel->vz) {
     131                for(i=0;i<6;i++)nodeinputs[i]=iomodel->vz[penta_node_ids[i]-1];
     132                this->inputs->AddInput(new PentaVertexInput(VzEnum,nodeinputs));
     133        }
     134        if (iomodel->vx_obs) {
     135                for(i=0;i<6;i++)nodeinputs[i]=iomodel->vx_obs[penta_node_ids[i]-1];
     136                this->inputs->AddInput(new PentaVertexInput(VxObsEnum,nodeinputs));
     137        }
     138        if (iomodel->vy_obs) {
     139                for(i=0;i<6;i++)nodeinputs[i]=iomodel->vy_obs[penta_node_ids[i]-1];
     140                this->inputs->AddInput(new PentaVertexInput(VyObsEnum,nodeinputs));
     141        }
     142        if (iomodel->vz_obs) {
     143                for(i=0;i<6;i++)nodeinputs[i]=iomodel->vz_obs[penta_node_ids[i]-1];
     144                this->inputs->AddInput(new PentaVertexInput(VzObsEnum,nodeinputs));
     145        }
     146        if (iomodel->weights) {
     147                for(i=0;i<6;i++)nodeinputs[i]=iomodel->weights[penta_node_ids[i]-1];
     148                this->inputs->AddInput(new PentaVertexInput(WeightsEnum,nodeinputs));
     149        }
    120150
    121151        if (iomodel->elementoniceshelf) this->inputs->AddInput(new BoolInput(ElementOnIceShelfEnum,(IssmBool)iomodel->elementoniceshelf[index]));
Note: See TracChangeset for help on using the changeset viewer.