source: issm/oecreview/Archive/27230-27343/ISSM-27313-27314.diff

Last change on this file was 27344, checked in by Mathieu Morlighem, 2 years ago

CHG: added Archive/27230-27343

File size: 2.4 KB
  • ../trunk-jpl/src/c/cores/transient_core.cpp

     
    158158        femmodel->parameters->FindParam(&numoutputs,TransientNumRequestedOutputsEnum);
    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){
    170168                if(issmb){
     
    189187        }
    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         }
     190        if(issmb) smb_core(femmodel);
    195191
    196         if(ishydrology){
    197                 hydrology_core(femmodel);
    198         }
     192        if(ishydrology) hydrology_core(femmodel);
    199193
    200         if(isstressbalance && (step%sb_coupling_frequency==0 || step==1) ) {
    201                 stressbalance_core(femmodel);
    202         }
     194        if(isstressbalance && (step%sb_coupling_frequency==0 || step==1)) stressbalance_core(femmodel);
    203195
    204         if(isdamageevolution) {
    205                 damage_core(femmodel);
    206         }
     196        if(isdamageevolution) damage_core(femmodel);
    207197
    208         if(ismovingfront)       {
    209                 movingfront_core(femmodel);
    210         }
     198        if(ismovingfront)       movingfront_core(femmodel);
    211199
    212         if(isdebris){
    213                 debris_core(femmodel);
    214         }
     200        if(isdebris) debris_core(femmodel);
    215201
    216202        /* from here on, prepare geometry for next time step*/
    217203
     
    218204        if(ismasstransport){
    219205                bmb_core(femmodel);
    220206                masstransport_core(femmodel);
    221                 femmodel->UpdateVertexPositionsx();
    222207        }
    223208
    224         if(isoceantransport){
    225                 oceantransport_core(femmodel);
    226         }
     209        if(isoceantransport) oceantransport_core(femmodel);
    227210
    228         if(isgroundingline){
    229                 groundingline_core(femmodel);
    230         }
     211        if(isgroundingline) groundingline_core(femmodel);
    231212
    232         /*esa: */
     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
    235218        /*Sea level change: */
     
    242225        }
    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?*/
    251231        if(numoutputs){
Note: See TracBrowser for help on using the repository browser.