Changeset 25810


Ignore:
Timestamp:
12/02/20 19:58:02 (4 years ago)
Author:
Mathieu Morlighem
Message:

BUG: ESMF not even compiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/main/esmfbinders.cpp

    r25539 r25810  
    1616        FemModel *femmodel;
    1717
     18        /*GEOS 5*/
    1819        void InitializeISSM(int argc, char** argv, int** pelementsonlocalrank, int* pnumberofelements, ISSM_MPI_Comm comm_init){ /*{{{*/
    1920
     
    7071                                                /*{{{*/
    7172                                                {
    72 
    7373                                                /*Recover rho_ice: */
    7474                                                rho_ice=element->FindParam(MaterialsRhoIceEnum);
     
    7878
    7979                                                /*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()];
    8182
    8283                                                /*Convert to SI. The smbforcing from GEOS-5 in kg/s, and we transform it into m/s: */
     
    8485
    8586                                                /*Add into the element as new forcing :*/
    86                                                 element->inputs->AddInput(new DoubleInput(SmbMassBalanceEnum,smbforcing));
    87 
     87                                                element->AddInput(SmbMassBalanceEnum,&smbforcing,P0Enum);
    8888                                                }
    8989                                                /*}}}*/
     
    116116                                                Input* surface_input = element->GetInput(SurfaceEnum); _assert_(surface_input);
    117117                                                surface_input->GetInputAverage(&surface);
    118 
    119                                                 *(issmoutputs+f*numberofelements+i) = surface;
     118                                                issmoutputs[f*numberofelements+element->Sid()] = surface;
    120119
    121120                                                }
     
    154153        } /*}}}*/
    155154
     155        /*FISOC*/
     156
    156157}
Note: See TracChangeset for help on using the changeset viewer.