Ignore:
Timestamp:
Feb 29, 2008 8:19:58 AM (16 years ago)
Author:
raasch
Message:

particle advection allowed for ocean runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/init_particles.f90

    r139 r150  
    44! Actual revisions:
    55! -----------------
    6 !
     6! Set offset_ocean_* needed for calculating vertical indices within ocean runs
    77!
    88! Former revisions:
     
    7979    CALL MPI_TYPE_COMMIT( mpi_particle_type, ierr )
    8080#endif
     81
     82!
     83!-- In case of oceans runs, the vertical index calculations need an offset,
     84!-- because otherwise the k indices will become negative
     85    IF ( ocean )  THEN
     86       offset_ocean_nzt    = nzt
     87       offset_ocean_nzt_m1 = nzt - 1
     88    ENDIF
     89
    8190
    8291!
Note: See TracChangeset for help on using the changeset viewer.