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 14962 for utils/tools/DOMAINcfg – NEMO

Ignore:
Timestamp:
2021-06-09T16:20:13+02:00 (3 years ago)
Author:
jchanut
Message:

#2638, update python script to accomodate multiply nested zooms

File:
1 edited

Legend:

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

    r14955 r14962  
    2121grid=[] 
    2222nbghostcells  = 4  
    23 nbghostcells_x = nbghostcells 
    24 nbghostcells_y = nbghostcells 
    25 nbghostcells_y_n = nbghostcells_y 
    26 nbghostcells_y_s = nbghostcells_y 
    27  
    2823 
    2924with open(Agrilefile) as fp: 
     
    6762    print(int(Ni0glo_parent), int(Nj0glo_parent)) 
    6863 
     64    nbghostcells_x = nbghostcells 
     65    nbghostcells_y = nbghostcells 
     66    nbghostcells_y_n = nbghostcells_y 
     67    nbghostcells_y_s = nbghostcells_y 
    6968    if (int(grid[cnt-1][2]) == 1 ): 
    7069        nbghostcells_y_s = 1  
Note: See TracChangeset for help on using the changeset viewer.