Changeset 27817


Ignore:
Timestamp:
06/30/23 15:32:51 (21 months ago)
Author:
seroussi
Message:

NEW: ice-ocean coupling calculated dynamic thickness and rerun mass transport with ocean melt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/transient_core.cpp

    r27732 r27817  
    157157        femmodel->parameters->FindParam(&isstochasticforcing,StochasticForcingIsStochasticForcingEnum);
    158158
    159 #if defined(_HAVE_OCEAN_)
    160         if(isoceancoupling) OceanExchangeDatax(femmodel,false);
    161 #endif
    162 
    163159        if(isstochasticforcing) StochasticForcingx(femmodel);
    164160
     
    198194        if(isdebris) debris_core(femmodel);
    199195
     196#if defined(_HAVE_OCEAN_)
     197        if(isoceancoupling) {
     198                /*First calculate thickness change without melt (dynamic thinning) to send to ocean
     199                 * then receive ocean melt
     200                 * then go back to the previous geometry to continue the transient with the melt received*/
     201                InputUpdateFromConstantx(femmodel,0.,BasalforcingsFloatingiceMeltingRateEnum);
     202                masstransport_core(femmodel);
     203                OceanExchangeDatax(femmodel,false);
     204                InputDuplicatex(femmodel,ThicknessOldEnum,ThicknessEnum);
     205                InputDuplicatex(femmodel,BaseOldEnum,BaseEnum);
     206                InputDuplicatex(femmodel,SurfaceOldEnum,SurfaceEnum);
     207        }
     208#endif
     209
    200210        /* from here on, prepare geometry for next time step*/
    201211
Note: See TracChangeset for help on using the changeset viewer.