Changeset 1601 for trunk/NEMO/OPA_SRC/FLO/flowri.F90
- Timestamp:
- 2009-08-11T12:09:19+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/FLO/flowri.F90
r1581 r1601 2 2 !!====================================================================== 3 3 !! *** MODULE flowri *** 4 !! 4 !! lagrangian floats : outputs 5 5 !!====================================================================== 6 !! History : OPA ! 1999-09 (Y. Drillet) Original code 7 !! ! 2000-06 (J.-M. Molines) Profiling floats for CLS 8 !! NEMO 1.0 ! 2002-11 (G. Madec, A. Bozec) F90: Free form and module 9 !!---------------------------------------------------------------------- 10 6 11 #if defined key_floats || defined key_esopa 7 12 !!---------------------------------------------------------------------- … … 10 15 !! flowri : write trajectories of floats in file 11 16 !!---------------------------------------------------------------------- 12 !! * Modules used13 17 USE flo_oce ! ocean drifting floats 14 18 USE oce ! ocean dynamics and tracers … … 19 23 20 24 IMPLICIT NONE 21 22 !! * Accessibility23 25 PRIVATE 24 PUBLIC flo_wri ! routine called by floats.F90 25 26 !! * Module variables 27 INTEGER :: jfl! number of floats26 27 PUBLIC flo_wri ! routine called by floats.F90 28 29 INTEGER :: jfl ! number of floats 28 30 29 31 !! * Substitutions 30 32 # include "domzgr_substitute.h90" 31 33 !!---------------------------------------------------------------------- 32 !! OPA 9.0 , LOCEAN-IPSL (2005)34 !! NEMO/OPA 3.2 , LOCEAN-IPSL (2009) 33 35 !! $Id$ 34 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt36 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 35 37 !!---------------------------------------------------------------------- 36 38 … … 38 40 39 41 SUBROUTINE flo_wri( kt ) 40 !!------------------------------------------------------------------- --42 !!------------------------------------------------------------------- 41 43 !! *** ROUTINE flo_wri *** 42 44 !! … … 44 46 !! and the temperature and salinity at this position 45 47 !! 46 !! ** Method : The frequency is nwritefl 47 !! 48 !! History : 49 !! 8.0 ! 99-09 (Y. Drillet) Original code 50 !! ! 00-06 (J.-M. Molines) Profiling floats for CLS 51 !! 8.5 ! 02-10 (A. Bozec) F90: Free form and module 48 !! ** Method : The frequency is nn_writefl 52 49 !!---------------------------------------------------------------------- 53 !! * Arguments 54 INTEGER :: kt ! time step 55 56 !! * Local declarations 50 INTEGER :: kt ! time step 51 !! 57 52 CHARACTER (len=21) :: clname 58 INTEGER :: inum ! temporary logical unit for restart file 59 INTEGER :: & 60 iafl,ibfl,icfl,ia1fl,ib1fl,ic1fl,jfl,irecflo, & 61 iafloc,ibfloc,ia1floc,ib1floc, & 62 iafln, ibfln 53 INTEGER :: inum ! temporary logical unit for restart file 54 INTEGER :: iafl, ibfl, icfl, ia1fl, ib1fl, ic1fl, jfl, irecflo, & 55 INTEGER :: iafloc, ibfloc, ia1floc, ib1floc, iafln, ibfln 63 56 INTEGER :: ic, jc , jpn 64 57 INTEGER, DIMENSION ( jpnij ) :: iproc … … 69 62 !!--------------------------------------------------------------------- 70 63 71 IF( kt == nit000 .OR. MOD( kt,n writefl)== 0 ) THEN64 IF( kt == nit000 .OR. MOD( kt,nn_writefl)== 0 ) THEN 72 65 73 66 ! header of output floats file … … 84 77 85 78 IF( kt == nit000 ) THEN 86 irecflo = NINT( (nitend-nit000) / FLOAT(n writefl) )87 IF(lwp) WRITE(numflo)cexper,no,irecflo,jpnfl,n writefl79 irecflo = NINT( (nitend-nit000) / FLOAT(nn_writefl) ) 80 IF(lwp) WRITE(numflo)cexper,no,irecflo,jpnfl,nn_writefl 88 81 ENDIF 89 82 zdtj = rdt / 86400. !!bug use of 86400 instead of the phycst parameter … … 246 239 ENDIF 247 240 248 IF( (MOD(kt,n stockfl) == 0) .OR. ( kt == nitend ) ) THEN241 IF( (MOD(kt,nn_stockfl) == 0) .OR. ( kt == nitend ) ) THEN 249 242 ! Writing the restart file 250 243 IF(lwp) THEN
Note: See TracChangeset
for help on using the changeset viewer.