[27344] | 1 | Index: ../trunk-jpl/src/c/cores/transient_core.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/cores/transient_core.cpp (revision 27313)
|
---|
| 4 | +++ ../trunk-jpl/src/c/cores/transient_core.cpp (revision 27314)
|
---|
| 5 | @@ -158,13 +158,11 @@
|
---|
| 6 | femmodel->parameters->FindParam(&numoutputs,TransientNumRequestedOutputsEnum);
|
---|
| 7 | femmodel->parameters->FindParam(&isstochasticforcing,StochasticForcingIsStochasticForcingEnum);
|
---|
| 8 |
|
---|
| 9 | -#if defined(_HAVE_OCEAN_ )
|
---|
| 10 | +#if defined(_HAVE_OCEAN_)
|
---|
| 11 | if(isoceancoupling) OceanExchangeDatax(femmodel,false);
|
---|
| 12 | #endif
|
---|
| 13 |
|
---|
| 14 | - if(isstochasticforcing){
|
---|
| 15 | - StochasticForcingx(femmodel);
|
---|
| 16 | - }
|
---|
| 17 | + if(isstochasticforcing) StochasticForcingx(femmodel);
|
---|
| 18 |
|
---|
| 19 | if(isthermal && domaintype==Domain3DEnum){
|
---|
| 20 | if(issmb){
|
---|
| 21 | @@ -189,29 +187,17 @@
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | /* Using Hydrology dc coupled we need to compute smb in the hydrology inner time loop*/
|
---|
| 25 | - if(issmb) {
|
---|
| 26 | - smb_core(femmodel);
|
---|
| 27 | - }
|
---|
| 28 | + if(issmb) smb_core(femmodel);
|
---|
| 29 |
|
---|
| 30 | - if(ishydrology){
|
---|
| 31 | - hydrology_core(femmodel);
|
---|
| 32 | - }
|
---|
| 33 | + if(ishydrology) hydrology_core(femmodel);
|
---|
| 34 |
|
---|
| 35 | - if(isstressbalance && (step%sb_coupling_frequency==0 || step==1) ) {
|
---|
| 36 | - stressbalance_core(femmodel);
|
---|
| 37 | - }
|
---|
| 38 | + if(isstressbalance && (step%sb_coupling_frequency==0 || step==1)) stressbalance_core(femmodel);
|
---|
| 39 |
|
---|
| 40 | - if(isdamageevolution) {
|
---|
| 41 | - damage_core(femmodel);
|
---|
| 42 | - }
|
---|
| 43 | + if(isdamageevolution) damage_core(femmodel);
|
---|
| 44 |
|
---|
| 45 | - if(ismovingfront) {
|
---|
| 46 | - movingfront_core(femmodel);
|
---|
| 47 | - }
|
---|
| 48 | + if(ismovingfront) movingfront_core(femmodel);
|
---|
| 49 |
|
---|
| 50 | - if(isdebris){
|
---|
| 51 | - debris_core(femmodel);
|
---|
| 52 | - }
|
---|
| 53 | + if(isdebris) debris_core(femmodel);
|
---|
| 54 |
|
---|
| 55 | /* from here on, prepare geometry for next time step*/
|
---|
| 56 |
|
---|
| 57 | @@ -218,18 +204,15 @@
|
---|
| 58 | if(ismasstransport){
|
---|
| 59 | bmb_core(femmodel);
|
---|
| 60 | masstransport_core(femmodel);
|
---|
| 61 | - femmodel->UpdateVertexPositionsx();
|
---|
| 62 | }
|
---|
| 63 |
|
---|
| 64 | - if(isoceantransport){
|
---|
| 65 | - oceantransport_core(femmodel);
|
---|
| 66 | - }
|
---|
| 67 | + if(isoceantransport) oceantransport_core(femmodel);
|
---|
| 68 |
|
---|
| 69 | - if(isgroundingline){
|
---|
| 70 | - groundingline_core(femmodel);
|
---|
| 71 | - }
|
---|
| 72 | + if(isgroundingline) groundingline_core(femmodel);
|
---|
| 73 |
|
---|
| 74 | - /*esa: */
|
---|
| 75 | + /*Update mesh vertices now that we have changed the geometry*/
|
---|
| 76 | + if(ismasstransport || isgroundingline) femmodel->UpdateVertexPositionsx();
|
---|
| 77 | +
|
---|
| 78 | if(isesa) esa_core(femmodel);
|
---|
| 79 |
|
---|
| 80 | /*Sea level change: */
|
---|
| 81 | @@ -242,10 +225,7 @@
|
---|
| 82 | }
|
---|
| 83 |
|
---|
| 84 | /*Sampling: */
|
---|
| 85 | - if(issampling){
|
---|
| 86 | - if(VerboseSolution()) _printf0_(" computing Gaussian random field\n");
|
---|
| 87 | - sampling_core(femmodel);
|
---|
| 88 | - }
|
---|
| 89 | + if(issampling) sampling_core(femmodel);
|
---|
| 90 |
|
---|
| 91 | /*Any requested output that needs to be saved?*/
|
---|
| 92 | if(numoutputs){
|
---|