Changeset 15667


Ignore:
Timestamp:
08/01/13 07:54:31 (12 years ago)
Author:
Mathieu Morlighem
Message:

BUG: no need to change time in transient inputs

Location:
issm/trunk-jpl/src/c/classes/Elements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r15657 r15667  
    16601660
    16611661        /*Intermediaries*/
    1662         int    i,t;
    1663         int    penta_vertex_ids[6];
    1664         int    row;
    1665         IssmDouble nodeinputs[6];
    1666         IssmDouble time;
    1667         TransientInput* transientinput=NULL;
    1668 
    1669         IssmDouble yts;
    1670 
    1671         /*Fetch parameters: */
    1672         iomodel->Constant(&yts,ConstantsYtsEnum);
     1662        int             i,t;
     1663        int             penta_vertex_ids[6];
     1664        int             row;
     1665        IssmDouble      nodeinputs[6];
     1666        IssmDouble      time;
     1667        TransientInput *transientinput      = NULL;
    16731668
    16741669        /*Branch on type of vector: nodal or elementary: */
     
    17011696
    17021697                                /*time? :*/
    1703                                 time=(IssmDouble)vector[(M-1)*N+t]*yts;
     1698                                time=(IssmDouble)vector[(M-1)*N+t];
    17041699
    17051700                                if(t==0)transientinput=new TransientInput(vector_enum);
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r15654 r15667  
    17701770        IssmDouble time;
    17711771        TransientInput* transientinput=NULL;
    1772         IssmDouble yts;
    1773 
    1774         /*Fetch parameters: */
    1775         iomodel->Constant(&yts,ConstantsYtsEnum);
    17761772
    17771773        /*Branch on type of vector: nodal or elementary: */
     
    18041800
    18051801                                /*time? :*/
    1806                                 time=(IssmDouble)vector[(M-1)*N+t]*yts;
     1802                                time=(IssmDouble)vector[(M-1)*N+t];
    18071803
    18081804                                if(t==0) transientinput=new TransientInput(vector_enum);
Note: See TracChangeset for help on using the changeset viewer.