Changeset 27212
- Timestamp:
- 08/17/22 13:29:17 (3 years ago)
- 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 1761 1761 *pV=total_ice_volume; 1762 1762 1763 }/*}}}*/ 1764 void 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 } 1763 1776 }/*}}}*/ 1764 1777 void FemModel::MassFluxx(IssmDouble* pmass_flux){/*{{{*/ -
issm/branches/trunk-larour-SLPS2022/src/c/classes/FemModel.h
r26890 r27212 116 116 void IceVolumex(IssmDouble* pV, bool scaled); 117 117 void IceVolumeAboveFloatationx(IssmDouble* pV, bool scaled); 118 void InputToP0(int inputenum,int outputenum); 118 119 void InputMakeDiscontinuous(int enum_in); 119 120 void MassFluxx(IssmDouble* presponse);
Note:
See TracChangeset
for help on using the changeset viewer.