Ignore:
Timestamp:
03/11/21 10:05:44 (4 years ago)
Author:
Eric.Larour
Message:

CHG: fixed test2001 by modifying the mass transport core. Now create inputs
directly in the core, not the MassTransportAnalysis::InputUpdateFromSolution.
Also need a new IoModel::InputToConstant routine.

File:
1 edited

Legend:

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

    r26069 r26073  
    41774177        inputs->SetTriaInput(enum_in,P0Enum,this->lid,value);
    41784178
     4179}
     4180/*}}}*/
     4181void       Tria::SetElementInput(int enum_in,IssmDouble value,int type){/*{{{*/
     4182
     4183        if(type==P0Enum){
     4184                this->inputs->SetTriaInput(enum_in,P0Enum,this->lid,value);
     4185        }
     4186        else if(type==P1Enum){
     4187                IssmDouble values[3];
     4188                for(int i=0;i<3;i++)values[i]=value;
     4189                int lidlist[3];
     4190                this->GetVerticesLidList(&lidlist[0]);
     4191                this->inputs->SetTriaInput(enum_in,P1Enum,3,&lidlist[0],&values[0]);
     4192        }
     4193        else _error_("interpolation type not supported yet");
    41794194}
    41804195/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.