New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 1241 for trunk/NEMO/OPA_SRC/OBC/obcdta.F90 – NEMO

Ignore:
Timestamp:
2009-01-05T17:14:49+01:00 (15 years ago)
Author:
rblod
Message:

Fix a stupid bug for time splitting and ensure restartability for dynspg_ts in addition, see tickets #280 and #292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/OBC/obcdta.F90

    r1156 r1241  
    986986 
    987987    IF( lk_dynspg_ts ) THEN 
    988        isrel = (kt-1)*rdt + kbt*rdtbt 
     988       isrel = (kt-1)*rdt + kbt*(rdt/REAL(nn_baro,wp)) 
    989989 
    990990       IF( nobc_dta == 1 ) THEN 
    991           isrel = (kt-1)*rdt + kbt*rdtbt 
     991          isrel = (kt-1)*rdt + kbt*(rdt/REAL(nn_baro,wp)) 
    992992          itimo  = FLOOR(  kt*rdt    / (tcobc(2)-tcobc(1)) ) 
    993993          itimom = FLOOR( (kt-1)*rdt / (tcobc(2)-tcobc(1)) ) 
Note: See TracChangeset for help on using the changeset viewer.