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 2496 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2010-12-20T16:28:20+01:00 (14 years ago)
Author:
gm
Message:

v3.3beta: cosmetic changes: model.f90 and opa.F90 changed into nemo.f90 and nemogcm.F90, resp.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90

    r2482 r2496  
    1 MODULE opa 
     1MODULE nemogcm 
    22   !!====================================================================== 
    3    !!                       ***  MODULE opa   *** 
    4    !! Ocean system   : OPA ocean dynamics (including on-line tracers and sea-ice) 
     3   !!                       ***  MODULE nemogcm   *** 
     4   !! Ocean system   : NEMO GCM (ocean dynamics, on-line tracers, biochemistry and sea-ice) 
    55   !!====================================================================== 
    66   !! History :  OPA  ! 1990-10  (C. Levy, G. Madec)  Original code 
     
    3030 
    3131   !!---------------------------------------------------------------------- 
    32    !!   opa_model      : solve ocean dynamics, tracer and/or sea-ice 
    33    !!   opa_init       : initialization of the opa model 
    34    !!   opa_ctl        : initialisation of algorithm flag  
    35    !!   opa_closefile  : close remaining files 
     32   !!   nemo_gcm       : solve ocean dynamics, tracer, biogeochemistry and/or sea-ice 
     33   !!   nemo_init      : initialization of the NEMO system 
     34   !!   nemo_ctl       : initialisation of the contol print  
     35   !!   nemo_closefile : close remaining open files 
    3636   !!---------------------------------------------------------------------- 
    37  
    3837   USE step_oce        ! module used in the ocean time stepping module 
    3938   USE sbc_oce         ! surface boundary condition: ocean 
     
    5554   USE diaptr          ! poleward transports           (dia_ptr_init routine) 
    5655   USE diaobs          ! Observation diagnostics       (dia_obs_init routine) 
    57    USE step            ! OPA time-stepping                  (stp     routine) 
     56   USE step            ! NEMO time-stepping                 (stp     routine) 
    5857#if defined key_oasis3 
    5958   USE cpl_oasis3      ! OASIS3 coupling 
     
    7372   PRIVATE 
    7473 
    75    PUBLIC   opa_model   ! called by model.F90 
    76    PUBLIC   opa_init    ! needed by AGRIF 
     74   PUBLIC   nemo_gcm    ! called by model.F90 
     75   PUBLIC   nemo_init   ! needed by AGRIF 
    7776 
    7877   CHARACTER (len=64) ::   cform_aaa="( /, 'AAAAAAAA', / ) "     ! flag for output listing 
     
    8584CONTAINS 
    8685 
    87    SUBROUTINE opa_model 
    88       !!---------------------------------------------------------------------- 
    89       !!                     ***  ROUTINE opa  *** 
    90       !! 
    91       !! ** Purpose :   opa solves the primitive equations on an orthogonal  
     86   SUBROUTINE nemo_gcm 
     87      !!---------------------------------------------------------------------- 
     88      !!                     ***  ROUTINE nemo_gcm  *** 
     89      !! 
     90      !! ** Purpose :   NEMO solves the primitive equations on an orthogonal  
    9291      !!              curvilinear mesh on the sphere. 
    9392      !! 
     
    107106 
    108107      !                            !-----------------------! 
    109       CALL opa_init                !==  Initialisations  ==! 
     108      CALL nemo_init               !==  Initialisations  ==! 
    110109      !                            !-----------------------! 
    111110 
     
    162161      ENDIF 
    163162      ! 
    164       CALL opa_closefile 
     163      CALL nemo_closefile 
    165164#if defined key_oasis3 || defined key_oasis4 
    166165      CALL cpl_prism_finalize           ! end coupling and mpp communications with OASIS 
     
    169168#endif 
    170169      ! 
    171    END SUBROUTINE opa_model 
    172  
    173  
    174    SUBROUTINE opa_init 
    175       !!---------------------------------------------------------------------- 
    176       !!                     ***  ROUTINE opa_init  *** 
    177       !! 
    178       !! ** Purpose :   initialization of the opa model 
    179       !! 
    180       !!---------------------------------------------------------------------- 
    181       INTEGER ::   ji            ! dummy loop indices 
     170   END SUBROUTINE nemo_gcm 
     171 
     172 
     173   SUBROUTINE nemo_init 
     174      !!---------------------------------------------------------------------- 
     175      !!                     ***  ROUTINE nemo_init  *** 
     176      !! 
     177      !! ** Purpose :   initialization of the NEMO GCM 
     178      !!---------------------------------------------------------------------- 
     179      INTEGER ::   ji          ! dummy loop indices 
    182180      INTEGER :: ilocal_comm   ! local integer 
    183       CHARACTER(len=80), DIMENSION(10) ::   cltxt = '' 
     181      CHARACTER(len=80), DIMENSION(10) ::   cltxt 
    184182      !! 
    185183      NAMELIST/namctl/ ln_ctl  , nn_print, nn_ictls, nn_ictle,   & 
    186184         &             nn_isplt, nn_jsplt, nn_jctls, nn_jctle, nn_bench 
    187185      !!---------------------------------------------------------------------- 
     186      ! 
     187      cltxt = '' 
    188188      ! 
    189189      !                             ! open Namelist file 
     
    235235         ! 
    236236      ENDIF 
    237       !                             !--------------------------------! 
    238       !                             !  Model general initialization  ! 
    239       !                             !--------------------------------! 
    240  
    241       CALL opa_ctl                           ! Control prints & Benchmark 
     237      !                             !-------------------------------! 
     238      !                             !  NEMO general initialization  ! 
     239      !                             !-------------------------------! 
     240 
     241      CALL nemo_ctl                          ! Control prints & Benchmark 
    242242 
    243243      !                                      ! Domain decomposition 
     
    315315      IF(lwp) WRITE(numout,*) 'Euler time step switch is ', neuler 
    316316      ! 
    317    END SUBROUTINE opa_init 
    318  
    319  
    320    SUBROUTINE opa_ctl 
    321       !!---------------------------------------------------------------------- 
    322       !!                     ***  ROUTINE opa_ctl  *** 
     317   END SUBROUTINE nemo_init 
     318 
     319 
     320   SUBROUTINE nemo_ctl 
     321      !!---------------------------------------------------------------------- 
     322      !!                     ***  ROUTINE nemo_ctl  *** 
    323323      !! 
    324324      !! ** Purpose :   control print setting  
     
    327327      !!---------------------------------------------------------------------- 
    328328      ! 
    329       IF(lwp) THEN                  ! Parameter print 
     329      IF(lwp) THEN                  ! control print 
    330330         WRITE(numout,*) 
    331          WRITE(numout,*) 'opa_ctl: Control prints & Benchmark' 
     331         WRITE(numout,*) 'nemo_ctl: Control prints & Benchmark' 
    332332         WRITE(numout,*) '~~~~~~~ ' 
    333333         WRITE(numout,*) '   Namelist namctl' 
     
    355355      IF( ln_ctl ) THEN                 ! sub-domain area indices for the control prints 
    356356         IF( lk_mpp ) THEN 
    357             isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real splitted domain 
     357            isplt = jpni   ;   jsplt = jpnj   ;   ijsplt = jpni*jpnj   ! the domain is forced to the real split domain 
    358358         ELSE 
    359359            IF( isplt == 1 .AND. jsplt == 1  ) THEN 
     
    398398      ENDIF 
    399399      ! 
    400       IF( lk_c1d .AND. .NOT.lk_iomput )   CALL ctl_stop( 'opa_ctl: The 1D configuration must be used ',   & 
    401          &                                               'with the IOM Input/Output manager. '        ,   & 
     400      IF( lk_c1d .AND. .NOT.lk_iomput )   CALL ctl_stop( 'nemo_ctl: The 1D configuration must be used ',   & 
     401         &                                               'with the IOM Input/Output manager. '         ,   & 
    402402         &                                               'Compile with key_iomput enabled' ) 
    403403      ! 
    404    END SUBROUTINE opa_ctl 
    405  
    406  
    407    SUBROUTINE opa_closefile 
    408       !!---------------------------------------------------------------------- 
    409       !!                     ***  ROUTINE opa_closefile  *** 
     404   END SUBROUTINE nemo_ctl 
     405 
     406 
     407   SUBROUTINE nemo_closefile 
     408      !!---------------------------------------------------------------------- 
     409      !!                     ***  ROUTINE nemo_closefile  *** 
    410410      !! 
    411411      !! ** Purpose :   Close the files 
     
    425425      numout = 6                                     ! redefine numout in case it is used after this point... 
    426426      ! 
    427    END SUBROUTINE opa_closefile 
     427   END SUBROUTINE nemo_closefile 
    428428 
    429429   !!====================================================================== 
    430 END MODULE opa 
     430END MODULE nemogcm 
Note: See TracChangeset for help on using the changeset viewer.