Changeset 27212


Ignore:
Timestamp:
08/17/22 13:29:17 (3 years ago)
Author:
Eric.Larour
Message:

CHG: new InputToP0Constant routine.

Location:
issm/branches/trunk-larour-SLPS2022/src/c/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-SLPS2022/src/c/classes/FemModel.cpp

    r27136 r27212  
    17611761        *pV=total_ice_volume;
    17621762
     1763}/*}}}*/
     1764void FemModel::InputToP0(int inputenum,int outputenum){/*{{{*/
     1765
     1766        IssmDouble average;
     1767
     1768        /*Collapse input to P0, by doing the average. We need to have the elements
     1769         * to do so, so loop onto elements: */
     1770        for(Object* & object : this->elements->objects){
     1771                Element* element = xDynamicCast<Element*>(object);
     1772                Input*  input = element->GetInput(inputenum);
     1773                input->GetInputAverage(&average);
     1774                element->AddInput(outputenum,&average,P0Enum);
     1775        }
    17631776}/*}}}*/
    17641777void FemModel::MassFluxx(IssmDouble* pmass_flux){/*{{{*/
  • issm/branches/trunk-larour-SLPS2022/src/c/classes/FemModel.h

    r26890 r27212  
    116116                void IceVolumex(IssmDouble* pV, bool scaled);
    117117                void IceVolumeAboveFloatationx(IssmDouble* pV, bool scaled);
     118                void InputToP0(int inputenum,int outputenum);
    118119                void InputMakeDiscontinuous(int enum_in);
    119120                void MassFluxx(IssmDouble* presponse);
Note: See TracChangeset for help on using the changeset viewer.