Changeset 27314


Ignore:
Timestamp:
10/17/22 13:00:28 (2 years ago)
Author:
Mathieu Morlighem
Message:

BUG: call UpdateVertexPosition AFTER grounding line migration

File:
1 edited

Legend:

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

    r27298 r27314  
    159159        femmodel->parameters->FindParam(&isstochasticforcing,StochasticForcingIsStochasticForcingEnum);
    160160
    161 #if defined(_HAVE_OCEAN_ )
     161#if defined(_HAVE_OCEAN_)
    162162        if(isoceancoupling) OceanExchangeDatax(femmodel,false);
    163163#endif
    164164
    165         if(isstochasticforcing){
    166                 StochasticForcingx(femmodel);
    167         }
     165        if(isstochasticforcing) StochasticForcingx(femmodel);
    168166
    169167        if(isthermal && domaintype==Domain3DEnum){
     
    190188
    191189        /* Using Hydrology dc  coupled we need to compute smb in the hydrology inner time loop*/
    192         if(issmb) {
    193                 smb_core(femmodel);
    194         }
    195 
    196         if(ishydrology){
    197                 hydrology_core(femmodel);
    198         }
    199 
    200         if(isstressbalance && (step%sb_coupling_frequency==0 || step==1) ) {
    201                 stressbalance_core(femmodel);
    202         }
    203 
    204         if(isdamageevolution) {
    205                 damage_core(femmodel);
    206         }
    207 
    208         if(ismovingfront)       {
    209                 movingfront_core(femmodel);
    210         }
    211 
    212         if(isdebris){
    213                 debris_core(femmodel);
    214         }
     190        if(issmb) smb_core(femmodel);
     191
     192        if(ishydrology) hydrology_core(femmodel);
     193
     194        if(isstressbalance && (step%sb_coupling_frequency==0 || step==1)) stressbalance_core(femmodel);
     195
     196        if(isdamageevolution) damage_core(femmodel);
     197
     198        if(ismovingfront)       movingfront_core(femmodel);
     199
     200        if(isdebris) debris_core(femmodel);
    215201
    216202        /* from here on, prepare geometry for next time step*/
     
    219205                bmb_core(femmodel);
    220206                masstransport_core(femmodel);
    221                 femmodel->UpdateVertexPositionsx();
    222         }
    223 
    224         if(isoceantransport){
    225                 oceantransport_core(femmodel);
    226         }
    227 
    228         if(isgroundingline){
    229                 groundingline_core(femmodel);
    230         }
    231 
    232         /*esa: */
     207        }
     208
     209        if(isoceantransport) oceantransport_core(femmodel);
     210
     211        if(isgroundingline) groundingline_core(femmodel);
     212
     213        /*Update mesh vertices now that we have changed the geometry*/
     214        if(ismasstransport || isgroundingline) femmodel->UpdateVertexPositionsx();
     215
    233216        if(isesa) esa_core(femmodel);
    234217
     
    243226
    244227        /*Sampling: */
    245         if(issampling){
    246                 if(VerboseSolution()) _printf0_("   computing Gaussian random field\n");
    247                 sampling_core(femmodel);
    248         }
     228        if(issampling) sampling_core(femmodel);
    249229
    250230        /*Any requested output that needs to be saved?*/
Note: See TracChangeset for help on using the changeset viewer.