Changeset 27342
- Timestamp:
 - 10/27/22 10:07:59 (3 years ago)
 - Location:
 - issm/trunk-jpl/src/c
 - Files:
 - 
      
- 2 edited
 
- 
          
  classes/Elements/Element.cpp (modified) (2 diffs)
 - 
          
  modules/FrontalForcingsx/FrontalForcingsx.cpp (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r27341 r27342 130 130 /*Compute polynomial with parameters of indperiod*/ 131 131 if(indperiod==0) telapsed_break = tatstep; 132 else telapsed_break = tatstep-datebreaks_basin[indperiod ];132 else telapsed_break = tatstep-datebreaks_basin[indperiod-1]; 133 133 for(int j=0;j<numparams;j++) sumpoly[s] = sumpoly[s]+polyparams_basin[indperiod+j*numperiods]*pow(telapsed_break,j); 134 134 } … … 2767 2767 /*Compute intercept+trend terms with parameters of indperiod*/ 2768 2768 if(indperiod==0) telapsed_break = time; 2769 else telapsed_break = time-datebreaks_b[indperiod ];2769 else telapsed_break = time-datebreaks_b[indperiod-1]; 2770 2770 piecewiselin = intercepts_b[indperiod]+trends_b[indperiod]*telapsed_break; 2771 2771 }  - 
      
issm/trunk-jpl/src/c/modules/FrontalForcingsx/FrontalForcingsx.cpp
r27335 r27342 101 101 xDelete<IssmDouble>(polyparams); 102 102 xDelete<IssmDouble>(datebreaks); 103 xDelete<IssmDouble>(monthdatebreaks); 104 xDelete<IssmDouble>(monthintercepts); 105 xDelete<IssmDouble>(monthtrends); 103 106 }/*}}}*/  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)