Changeset 25810
- Timestamp:
- 12/02/20 19:58:02 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/main/esmfbinders.cpp ¶
r25539 r25810 16 16 FemModel *femmodel; 17 17 18 /*GEOS 5*/ 18 19 void InitializeISSM(int argc, char** argv, int** pelementsonlocalrank, int* pnumberofelements, ISSM_MPI_Comm comm_init){ /*{{{*/ 19 20 … … 70 71 /*{{{*/ 71 72 { 72 73 73 /*Recover rho_ice: */ 74 74 rho_ice=element->FindParam(MaterialsRhoIceEnum); … … 78 78 79 79 /*Recover smb forcing from the gcm forcings: */ 80 IssmDouble smbforcing=*(gcmforcings+f*numberofelements+i); 80 _error_("not implemented yet, line below may not work"); 81 IssmDouble smbforcing=gcmforcings[f*numberofelements+element->Sid()]; 81 82 82 83 /*Convert to SI. The smbforcing from GEOS-5 in kg/s, and we transform it into m/s: */ … … 84 85 85 86 /*Add into the element as new forcing :*/ 86 element->inputs->AddInput(new DoubleInput(SmbMassBalanceEnum,smbforcing)); 87 87 element->AddInput(SmbMassBalanceEnum,&smbforcing,P0Enum); 88 88 } 89 89 /*}}}*/ … … 116 116 Input* surface_input = element->GetInput(SurfaceEnum); _assert_(surface_input); 117 117 surface_input->GetInputAverage(&surface); 118 119 *(issmoutputs+f*numberofelements+i) = surface; 118 issmoutputs[f*numberofelements+element->Sid()] = surface; 120 119 121 120 } … … 154 153 } /*}}}*/ 155 154 155 /*FISOC*/ 156 156 157 }
Note:
See TracChangeset
for help on using the changeset viewer.