Changeset 22506 for issm/trunk-jpl/src/c/analyses/MasstransportAnalysis.cpp
- Timestamp:
- 03/07/18 10:19:07 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/MasstransportAnalysis.cpp
r22471 r22506 156 156 iomodel->FetchDataToInput(elements,"md.mask.groundedice_levelset",MaskGroundediceLevelsetEnum); 157 157 iomodel->FetchDataToInput(elements,"md.basalforcings.groundedice_melting_rate",BasalforcingsGroundediceMeltingRateEnum); 158 iomodel->FetchDataToInput(elements,"md.basalforcings.floatingice_melting_rate",BasalforcingsFloatingiceMeltingRateEnum);159 158 iomodel->FetchDataToInput(elements,"md.initialization.vx",VxEnum); 160 159 iomodel->FetchDataToInput(elements,"md.initialization.vy",VyEnum); 160 161 /*Get what we need for ocean-induced basal melting*/ 162 int basalforcing_model; 163 iomodel->FindConstant(&basalforcing_model,"md.basalforcings.model"); 164 switch(basalforcing_model){ 165 case FloatingMeltRateEnum: 166 iomodel->FetchDataToInput(elements,"md.basalforcings.floatingice_melting_rate",BasalforcingsFloatingiceMeltingRateEnum); 167 break; 168 case LinearFloatingMeltRateEnum: 169 break; 170 case MismipFloatingMeltRateEnum: 171 break; 172 case MantlePlumeGeothermalFluxEnum: 173 break; 174 case BasalforcingsPicoEnum: 175 iomodel->FetchDataToInput(elements,"md.basalforcings.basin_id",BasalforcingsPicoBasinIdEnum); 176 break; 177 default: 178 _error_("Basal forcing model "<<EnumToStringx(basalforcing_model)<<" not supported yet"); 179 } 161 180 162 181 if(isoceancoupling){ … … 177 196 iomodel->FetchDataToInput(elements,"md.mesh.vertexonbase",MeshVertexonbaseEnum); 178 197 iomodel->FetchDataToInput(elements,"md.mesh.vertexonsurface",MeshVertexonsurfaceEnum); 179 }180 181 int basalforcing_model;182 iomodel->FindConstant(&basalforcing_model,"md.basalforcings.model");183 switch(basalforcing_model){184 case BasalforcingsPicoEnum:185 iomodel->FetchDataToInput(elements,"md.basalforcings.basin_id",BasalforcingsPicoBasinIdEnum);186 break;187 default: // Do nothing188 break;189 198 } 190 199
Note:
See TracChangeset
for help on using the changeset viewer.