Changeset 14655
- Timestamp:
- 2021-03-30T16:41:30+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2021/dev_r14608_AGRIF_domcfg/src/NST/agrif_user.F90
r14641 r14655 850 850 ENDIF 851 851 852 ! Set the number of ghost cells according to periodicity853 nbghostcells_x = nbghostcells854 nbghostcells_y_s = nbghostcells855 nbghostcells_y_n = nbghostcells856 857 !IF ((jperio == 1).OR.(jperio == 4) ) THEN858 IF ( l_Iperio ) nbghostcells_x = 0859 lk_south = .NOT. ( Agrif_Iy() == 1 )860 IF( .NOT. lk_south ) nbghostcells_y_s = 0861 862 852 ! JC => side effects of lines below to be checked: 863 853 IF (.not.agrif_root()) THEN 864 lk_west = .NOT. ( Agrif_Ix() == 1 ) 865 lk_east = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo) -1 ) 866 lk_south = .NOT. ( Agrif_Iy() == 1 ) 867 lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo) -1 ) 868 ! 869 870 ! 871 IF( l_Iperio ) nbghostcells_x = 0 872 IF( .NOT. lk_south ) nbghostcells_y_s = 0 873 IF( .NOT. lk_north ) nbghostcells_y_n = 0 874 ! 875 ! Some checks 876 IF( (.NOT.ln_vert_remap).AND.(jpkglo>Agrif_Parent(jpkglo)) ) CALL ctl_stop( 'STOP', & 854 nbghostcells_x = nbghostcells 855 nbghostcells_y_s = nbghostcells 856 nbghostcells_y_n = nbghostcells 857 858 lk_west = .NOT. ( Agrif_Ix() == 1 ) 859 lk_east = .NOT. ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo) -1 ) 860 lk_south = .NOT. ( Agrif_Iy() == 1 ) 861 lk_north = .NOT. ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo) -1 ) 862 ! 863 ! Correct number of ghost cells according to periodicity 864 ! 865 IF( l_Iperio ) nbghostcells_x = 0 866 IF( .NOT. lk_south ) nbghostcells_y_s = 0 867 IF( .NOT. lk_north ) nbghostcells_y_n = 0 868 ! 869 ! Some checks 870 IF( (.NOT.ln_vert_remap).AND.(jpkglo>Agrif_Parent(jpkglo)) ) CALL ctl_stop( 'STOP', & 877 871 & 'agrif_nemo_init: Agrif children must have less or equal number of vertical levels without ln_vert_remap defined' ) 878 IF( jpiglo /= nbcellsx + 2 + 2*nn_hls + nbghostcells_x + nbghostcells_x ) CALL ctl_stop( 'STOP', &872 IF( jpiglo /= nbcellsx + 2 + 2*nn_hls + nbghostcells_x + nbghostcells_x ) CALL ctl_stop( 'STOP', & 879 873 & 'agrif_nemo_init: Agrif children requires jpiglo == nbcellsx + 2 + 2*nn_hls + 2*nbghostcells_x' ) 880 IF( jpjglo /= nbcellsy + 2 + 2*nn_hls + nbghostcells_y_s + nbghostcells_y_n ) CALL ctl_stop( 'STOP', &874 IF( jpjglo /= nbcellsy + 2 + 2*nn_hls + nbghostcells_y_s + nbghostcells_y_n ) CALL ctl_stop( 'STOP', & 881 875 & 'agrif_nemo_init: Agrif children requires jpjglo == nbcellsy + 2 + 2*nn_hls + nbghostcells_y_s + nbghostcells_y_n' ) 882 IF( ln_use_jattr ) CALL ctl_stop( 'STOP', 'agrif_nemo_init:Agrif children requires ln_use_jattr = .false. ' ) 883 ENDIF 884 876 IF( ln_use_jattr ) CALL ctl_stop( 'STOP', 'agrif_nemo_init:Agrif children requires ln_use_jattr = .false. ' ) 877 ELSE 878 ! Root grid 879 nbghostcells_x = 0 880 nbghostcells_y_s = 0 881 nbghostcells_y_n = 0 882 ENDIF 885 883 ! 886 884 !
Note: See TracChangeset
for help on using the changeset viewer.