Changeset 3707


Ignore:
Timestamp:
05/11/10 09:12:34 (15 years ago)
Author:
seroussi
Message:

dhdt and not dt

Location:
issm/trunk/src/c/objects/Elements
Files:
4 edited

Legend:

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

    r3706 r3707  
    142142        }       
    143143        if (iomodel->gridonbed) this->inputs->AddInput(new BoolInput(ElementOnBedEnum,(IssmBool)iomodel->gridonbed[index]));
    144         if (iomodel->dt) this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt));
    145144
    146145        //this->parameters: we still can't point to it, it may not even exist. Configure will handle this.
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r3706 r3707  
    126126                this->inputs->AddInput(new PentaVertexInput(TemperatureEnum,nodeinputs));
    127127        }
     128        if (iomodel->dhdt) {
     129                for(i=0;i<6;i++)nodeinputs[i]=iomodel->dhdt[penta_node_ids[i]-1];
     130                this->inputs->AddInput(new PentaVertexInput(DhdtEnum,nodeinputs));
     131        }
    128132
    129133        /*vx,vy and vz: */
     
    161165        if (iomodel->elementonwater) this->inputs->AddInput(new BoolInput(ElementOnWaterEnum,(IssmBool)iomodel->elementonwater[index]));
    162166        if (iomodel->elementonsurface) this->inputs->AddInput(new BoolInput(ElementOnSurfaceEnum,(IssmBool)iomodel->elementonsurface[index]));
    163         if (iomodel->dt) this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt));
    164167
    165168        //elements of type 3 are macayeal type penta. we collapse the formulation on their base.
  • issm/trunk/src/c/objects/Elements/Sing.cpp

    r3706 r3707  
    9494        if (iomodel->vz_obs) this->inputs->AddInput(new SingVertexInput(VzEnum,iomodel->vz_obs[i]));
    9595        if (iomodel->weights) this->inputs->AddInput(new SingVertexInput(WeightsEnum,iomodel->weights[i]));
    96 
    97         if (iomodel->dt) this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt));
    9896
    9997        //this->parameters: we still can't point to it, it may not even exist. Configure will handle this.
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r3706 r3707  
    117117                if (iomodel->drag_q) this->inputs->AddInput(new DoubleInput(DragQEnum,iomodel->drag_q[index]));
    118118                this->inputs->AddInput(new IntInput(DragTypeEnum,iomodel->drag_type));
    119 
     119s
    120120        }
    121121        if (iomodel->melting_rate) {
     
    130130                for(i=0;i<3;i++)nodeinputs[i]=iomodel->geothermalflux[tria_node_ids[i]-1];
    131131                this->inputs->AddInput(new TriaVertexInput(GeothermalFluxEnum,nodeinputs));
     132        }
     133        if (iomodel->dhdt) {
     134                for(i=0;i<3;i++)nodeinputs[i]=iomodel->dhdt[tria_node_ids[i]-1];
     135                this->inputs->AddInput(new TriaVertexInput(DhDtEnum,nodeinputs));
    132136        }
    133137        if (iomodel->pressure) {
     
    174178        if (iomodel->elementonwater) this->inputs->AddInput(new BoolInput(ElementOnWaterEnum,(IssmBool)iomodel->elementonwater[index]));
    175179        if (iomodel->elementonsurface) this->inputs->AddInput(new BoolInput(ElementOnSurfaceEnum,(IssmBool)iomodel->elementonsurface[index]));
    176         if (iomodel->dt) this->inputs->AddInput(new DoubleInput(DtEnum,iomodel->dt));
    177180
    178181        //this->parameters: we still can't point to it, it may not even exist. Configure will handle this.
Note: See TracChangeset for help on using the changeset viewer.