Changeset 15279 for utils/tools/DOMAINcfg/make_namelist.py
- Timestamp:
- 2021-09-23T12:00:23+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools/DOMAINcfg/make_namelist.py
r14962 r15279 62 62 print(int(Ni0glo_parent), int(Nj0glo_parent)) 63 63 64 nbghostcells_x = nbghostcells65 nbghostcells_ y= nbghostcells66 nbghostcells_y_n = nbghostcells _y67 nbghostcells_y_s = nbghostcells _y64 nbghostcells_x_e = nbghostcells 65 nbghostcells_x_w = nbghostcells 66 nbghostcells_y_n = nbghostcells 67 nbghostcells_y_s = nbghostcells 68 68 if (int(grid[cnt-1][2]) == 1 ): 69 69 nbghostcells_y_s = 1 70 70 if int(grid[cnt-1][3]) == int(Nj0glo_parent)-1 : 71 71 nbghostcells_y_n = 1 72 if (int(grid[cnt-1][0]) == 1 ): 73 nbghostcells_x_w = 1 74 if int(grid[cnt-1][1]) == int(Ni0glo_parent)-1 : 75 nbghostcells_x_e = 1 76 if int(grid[cnt-1][3]) == int(Nj0glo_parent) : 77 nbghostcells_y_n = 0 72 78 if int(grid[cnt-1][1]) - int(grid[cnt-1][0]) == int(Ni0glo_parent) : 73 nbghostcells_x = 0 79 nbghostcells_x_w = 0 80 nbghostcells_x_e = 0 74 81 75 Ni0glo = (int(grid[cnt-1][1])-int(grid[cnt-1][0]))*int(grid[cnt-1][4]) + 2*nbghostcells_x82 Ni0glo = (int(grid[cnt-1][1])-int(grid[cnt-1][0]))*int(grid[cnt-1][4]) + nbghostcells_x_w + nbghostcells_x_e 76 83 Nj0glo = (int(grid[cnt-1][3])-int(grid[cnt-1][2]))*int(grid[cnt-1][5]) + nbghostcells_y_n + nbghostcells_y_s 77 84 #print( "Grid "+str(cnt)+" : jpiglo = "+cnt(jpiglo)+ " jpjglo = "+str(jpjglo) ) 78 85 print(int(grid[cnt-1][0]), int(grid[cnt-1][1]), int(grid[cnt-1][2]),int(grid[cnt-1][3])) 79 print(nbghostcells_x ,nbghostcells_y_s, nbghostcells_y_n)86 print(nbghostcells_x_w, nbghostcells_x_e, nbghostcells_y_s, nbghostcells_y_n) 80 87 print('Grid {:1d} : Ni0glo = {:3d} , Nj0glo = {:3d}'.format(cnt, Ni0glo, Nj0glo)) 81 88 … … 91 98 else: 92 99 line = " jperio = 0\n" 100 if nbghostcells_y_n == 0: 101 line = " jperio = 4\n" 93 102 if line.strip().startswith('nn_bathy'): 94 103 line = " nn_bathy = 2\n"
Note: See TracChangeset
for help on using the changeset viewer.