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 2715 for trunk/NEMOGCM/NEMO/OPA_SRC/FLO/floats.F90 – NEMO

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/FLO/floats.F90

    r2528 r2715  
    5050      !!---------------------------------------------------------------------- 
    5151      ! 
    52       IF( kt == nit000 ) THEN 
    53          IF(lwp) WRITE(numout,*) 
    54          IF(lwp) WRITE(numout,*) 'flo_stp : call floats routine ' 
    55          IF(lwp) WRITE(numout,*) '~~~~~~~' 
    56  
    57          CALL flo_dom            ! compute/read initial position of floats 
    58  
    59          wb(:,:,:) = wn(:,:,:)   ! set wb for computation of floats trajectories at the first time step 
    60       ENDIF 
    61       ! 
    6252      IF( ln_flork4 ) THEN   ;   CALL flo_4rk( kt )        ! Trajectories using a 4th order Runge Kutta scheme 
    6353      ELSE                   ;   CALL flo_blk( kt )        ! Trajectories using Blanke' algorithme 
     
    8373      !!--------------------------------------------------------------------- 
    8474      ! 
     75      IF(lwp) WRITE(numout,*) 
     76      IF(lwp) WRITE(numout,*) 'flo_stp : call floats routine ' 
     77      IF(lwp) WRITE(numout,*) '~~~~~~~' 
     78 
    8579      REWIND( numnam )              ! Namelist namflo : floats 
    8680      READ  ( numnam, namflo ) 
     
    9589         WRITE(numout,*) '            Computation of T trajectories    ln_flork4  = ', ln_flork4 
    9690      ENDIF 
     91      ! 
     92      !                             ! allocate floats arrays 
     93      IF( flo_oce_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'flo_init : unable to allocate arrays' ) 
     94      ! 
     95      !                             ! allocate flowri arrays 
     96      IF( flo_wri_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'flo_wri : unable to allocate arrays' ) 
     97      ! 
     98      CALL flo_dom                  ! compute/read initial position of floats 
     99 
     100      wb(:,:,:) = wn(:,:,:)         ! set wb for computation of floats trajectories at the first time step 
    97101      ! 
    98102   END SUBROUTINE flo_init 
Note: See TracChangeset for help on using the changeset viewer.