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 14690 – NEMO

Changeset 14690


Ignore:
Timestamp:
2021-04-12T09:53:52+02:00 (3 years ago)
Author:
jchanut
Message:

#2368, Add AGRIF zoom coincident with North and South boundaries in python script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/tools/DOMAINcfg/make_namelist.py

    r14687 r14690  
    5959               Ni0glo_parent=line.strip().split()[2]                
    6060           f2.write(line) 
     61           if line.strip().startswith('Nj0glo'): 
     62               Nj0glo_parent=line.strip().split()[2]                
     63           f2.write(line) 
    6164           cnt1 += 1 
    6265    f2.close() 
     
    6467    if int(grid[cnt-1][2]) == 1: 
    6568        nbghostcells_y_s = 0 
     69    if int(grid[cnt-1][3]) == int(Nj0glo_parent) + 1: 
     70        nbghostcells_y_n = 0 
    6671    if int(grid[cnt-1][1]) + int(grid[cnt-1][0]) == int(Ni0glo_parent) + 2 : 
    6772        nbghostcells_x = 0 
     
    8388                   line = "   jperio = 0\n" 
    8489           if line.strip().startswith('nn_bathy'): 
    85                line = "   nn_bathy = 2\n" 
     90                  line = "   nn_bathy = 2\n" 
    8691           if line.strip().startswith('nn_interp'): 
    8792               line = "   nn_interp = 1\n" 
Note: See TracChangeset for help on using the changeset viewer.