source:
issm/oecreview/Archive/25834-26739/ISSM-26225-26226.diff
Last change on this file was 26740, checked in by , 3 years ago | |
---|---|
File size: 1.6 KB |
-
../trunk-jpl/src/c/classes/Inputs/TransientInput.cpp
Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
431 431 if (reCast<IssmDouble>(nsteps)<time1/dt) nsteps=nsteps+1; 432 432 time1 = nsteps*dt; 433 433 434 if(cycle && (time<time0 || time>time1)){434 if(cycle){ 435 435 436 436 /*See by how many intervals we have to offset time*/ 437 437 IssmDouble deltat = time1-time0; … … 440 440 int num_intervals = reCast<int,IssmDouble>(fabs(time-time0)/deltat); 441 441 442 442 /*Uncomment following line if you would like to apply a cycle BEFORE the time series starts*/ 443 //if(time<time0) num_intervals = -num_intervals-1;443 if(time<time0) num_intervals = -num_intervals-1; 444 444 445 445 if(fabs(time-time0)/deltat == reCast<IssmDouble>(num_intervals)){ 446 446 /*Hack to make sure we always cover the last value of the series (discussion with Nicole)*/
Note:
See TracBrowser
for help on using the repository browser.