C $Header: /u/gcmpack/MITgcm/pkg/cal/cal_nstepday.F,v 1.2 2003/10/09 04:19:19 edhill Exp $
C $Name:  $

#include "CAL_OPTIONS.h"

      integer function cal_nStepDay(
     I                               mythid
     &                             )

c     ==================================================================
c     FUNCTION cal_nStepDay
c     ==================================================================
c
c     o Return the number of time steps that can be performed during one
c       calendar day.
c
c     started: Christian Eckert eckert@mit.edu  30-Jun-1999
c
c     changed: Christian Eckert eckert@mit.edu  29-Dec-1999
c
c              - restructured the original version in order to have a
c                better interface to the MITgcmUV.
c
c              Christian Eckert eckert@mit.edu  03-Feb-2000
c
c              - Introduced new routine and function names, cal_,
c                for verion 0.1.3.
c
c     ==================================================================
c     FUNCTION cal_nStepDay
c     ==================================================================

      implicit none

c     == global variables ==

#include "cal.h"

c     == routine arguments ==

      integer mythid

c     == local variables ==

c     == end of interface ==

c     See the remarks on assumptions in the documentation for this piece
c     of code.
      cal_nStepDay = secondsperday/nint(modelstep)

      return
      end