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.
ticket/0932_Standalone_SBC (diff) – NEMO

Changes between Version 12 and Version 13 of ticket/0932_Standalone_SBC


Ignore:
Timestamp:
2012-04-25T09:43:36+02:00 (12 years ago)
Author:
sga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ticket/0932_Standalone_SBC

    v12 v13  
    3434However no namelist parameters need be changed from the settings of the previous run (except perhaps nn_date0). 
    3535In this configuration, a few routines in the standard model are overriden by new versions. 
     36This is achieved by creating a new sub-directory SAS_SRC which includes copies of new versions of routines. 
     37By specifying the order in which sub-directories are included in the build (i.e. SAS_SRC after OPA_SRC in cfg.txt), files with the same name 
     38in SAS_SRC are preferentially used over those in OPA_SRC. 
    3639 
    37 Routines replaced are: 
     40Routines in SAS_SRC are: 
    3841 
    3942nemogcm.F90 
     
    4548 
    4649       The main time stepping routine now only needs to call the sbc routine (and a few utility functions). 
    47  
    48 sbcmod.F90 
    49  
    50        This has been cut down and now only calculates surface forcing and the ice model required.  New surface modules 
    51        that can function when only the surface level of the ocean state is defined can also be added (e.g. icebergs). 
    5250 
    5351daymod.F90 
     
    6664       have been read in) are written along with relevant forcing and ice data. 
    6765 
    68 One new routine has been added: 
     66The internal workings of one routine have been completely replaced (which means that does not have to be modified): 
    6967 
    70 sbcsas.F90 
     68sbcssm.F90 
    7169 
    72        This routine initialises the input files needed for reading temperature, salinity and velocity arrays at the surface. 
    73        These filenames are supplied in namelist namsbc_sas.  Unfortunately because of limitations with the iom module, 
    74        the full 3D fields from the mean files have to be read in and interpolated in time, before using just the top level. 
     70       This routine now initialises the input files needed for reading temperature, salinity, velocity and sea surface height 
     71       arrays at the surface. These filenames are supplied in namelist namsbc_sas.  Unfortunately because of limitations with the iom module, 
     72       the full 3D velocity fields from the mean files have to be read in and interpolated in time, before using just the top level. However an 
     73       option is included to read 2D velocity fields if they are available in the input file, but ln_3d_uv must be explicitly set to be false in the 
     74       namelist for the code to be able to use them. 
    7575       Since fldread is used to read in the data, Interpolation on the Fly may be used to change input data resolution. 
    7676 
    7777---- 
    7878 
     79== ''' Further Discussion''' == 
     80 
     81Some of the above changes has implications for other parts of the code (and therefore outside the remit of this branch): 
     82 
     83 * daymod currently includes a call to open the ocean restart file for writing.  The offline code (OFF_SRC) modifies this with the lk_offline key  
     84    and replaces control of nitrst with code in trcrst.F90.  I wonder if control functionality for all restarts should be in its own routine and removed 
     85    from restart.F90, daymod.F90 and trcrst.F90.  This would mean the above SAS_SRC daymod is unnecessary. 
     86 
     87 * There are now three copies of nemogcm with repeat non-overlapping code.  I think this part of these files should be moved into a separate 
     88    file so there is no danger of divergence when the original OPA_SRC copy of nemogcm is modified. 
     89 
     90---- 
     91 
    7992== ''' Test Case ''' == 
     93 
     94''' Note that currently the test below is out of sync with the branch and almost certainly incorrect ''' 
    8095 
    8196A standard ORCA2 configuration is run for one year with five day mean output.