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.
traswp.F90 in trunk/NEMOGCM/NEMO/OPA_SRC/TRA – NEMO

source: trunk/NEMOGCM/NEMO/OPA_SRC/TRA/traswp.F90 @ 2760

Last change on this file since 2760 was 2715, checked in by rblod, 13 years ago

First attempt to put dynamic allocation on the trunk

  • Property svn:keywords set to Id
File size: 2.1 KB
RevLine 
[2024]1MODULE traswp
2   !!==============================================================================
3   !!                       ***  MODULE  traswp  ***
4   !! Ocean active tracers: swapping array
5   !!==============================================================================
[2104]6   USE par_oce         ! ocean parameters
[2024]7   USE oce             ! ocean dynamics and active tracers
8
9   IMPLICIT NONE
10   PRIVATE
11
[2034]12   PUBLIC   tra_swap     ! routine called by step.F90
13   PUBLIC   tra_unswap   ! routine called by step.F90
[2024]14
15   !!----------------------------------------------------------------------
[2287]16   !! NEMO/OPA 3.3 , NEMO Consortium (2010)
[2281]17   !! $Id$
[2715]18   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
[2024]19   !!----------------------------------------------------------------------
20CONTAINS
21
22   SUBROUTINE tra_swap 
23      !!----------------------------------------------------------------------
24      !!                  ***  ROUTINE tra_swp  ***
25      !!                   
26      !! ** Purpose : Store temperature and salinity aaray into a 4D array
27      !!
28      !!----------------------------------------------------------------------
[2104]29      !
[2024]30      tsn(:,:,:,jp_tem) = tn(:,:,:)      ;      tsn(:,:,:,jp_sal) = sn(:,:,:)
31      tsb(:,:,:,jp_tem) = tb(:,:,:)      ;      tsb(:,:,:,jp_sal) = sb(:,:,:)
32      tsa(:,:,:,jp_tem) = ta(:,:,:)      ;      tsa(:,:,:,jp_sal) = sa(:,:,:)
[2104]33      !
[2024]34   END SUBROUTINE tra_swap
35
36   SUBROUTINE tra_unswap 
37      !!----------------------------------------------------------------------
38      !!                  ***  ROUTINE tra_unswap  ***
39      !!                   
40      !! ** Purpose : Store temperature and salinity aaray into a 4D array
41      !!
42      !!----------------------------------------------------------------------
[2104]43      !
[2024]44      tn(:,:,:) = tsn(:,:,:,jp_tem)      ;      sn(:,:,:) = tsn(:,:,:,jp_sal)
45      tb(:,:,:) = tsb(:,:,:,jp_tem)      ;      sb(:,:,:) = tsb(:,:,:,jp_sal)
46      ta(:,:,:) = tsa(:,:,:,jp_tem)      ;      sa(:,:,:) = tsa(:,:,:,jp_sal)
[2104]47      !
[2024]48   END SUBROUTINE tra_unswap
49
50   !!======================================================================
51END MODULE traswp
Note: See TracBrowser for help on using the repository browser.