MOM6
midas_vertmap::fill_boundaries Interface Reference

Detailed Description

Definition at line 58 of file midas_vertmap.F90.

Private functions

real function, dimension(0:size(m, 1)+1, 0:size(m, 2)+1) fill_boundaries_real (m, cyclic_x, tripolar_n)
 
integer function, dimension(0:size(m, 1)+1, 0:size(m, 2)+1) fill_boundaries_int (m, cyclic_x, tripolar_n)
 

Functions and subroutines

◆ fill_boundaries_int()

integer function, dimension(0:size(m,1)+1,0:size(m,2)+1) midas_vertmap::fill_boundaries::fill_boundaries_int ( integer, dimension(:,:), intent(in)  m,
logical, intent(in)  cyclic_x,
logical, intent(in)  tripolar_n 
)
private

Definition at line 974 of file midas_vertmap.F90.

974 !
975 ! fill grid edges
976 !
977 integer, dimension(:,:), intent(in) :: m
978 logical, intent(in) :: cyclic_x, tripolar_n
979 real, dimension(size(m,1),size(m,2)) :: m_real
980 real, dimension(0:size(m,1)+1,0:size(m,2)+1) :: mp_real
981 integer, dimension(0:size(m,1)+1,0:size(m,2)+1) :: mp
982 
983 m_real = real(m)
984 
985 mp_real = fill_boundaries_real(m_real,cyclic_x,tripolar_n)
986 
987 mp = int(mp_real)
988 
989 return
990 

◆ fill_boundaries_real()

real function, dimension(0:size(m,1)+1,0:size(m,2)+1) midas_vertmap::fill_boundaries::fill_boundaries_real ( real, dimension(:,:), intent(in)  m,
logical, intent(in)  cyclic_x,
logical, intent(in)  tripolar_n 
)
private

Definition at line 994 of file midas_vertmap.F90.

994 !
995 ! fill grid edges
996 !
997 real, dimension(:,:), intent(in) :: m
998 logical, intent(in) :: cyclic_x, tripolar_n
999 real, dimension(0:size(m,1)+1,0:size(m,2)+1) :: mp
1000 
1001 integer :: ni,nj,i,j
1002 
1003 ni=size(m,1); nj=size(m,2)
1004 
1005 mp(1:ni,1:nj)=m(:,:)
1006 
1007 if (cyclic_x) then
1008  mp(0,1:nj)=m(ni,1:nj)
1009  mp(ni+1,1:nj)=m(1,1:nj)
1010 else
1011  mp(0,1:nj)=m(1,1:nj)
1012  mp(ni+1,1:nj)=m(ni,1:nj)
1013 endif
1014 
1015 mp(1:ni,0)=m(1:ni,1)
1016 if (tripolar_n) then
1017  do i=1,ni
1018  mp(i,nj+1)=m(ni-i+1,nj)
1019  enddo
1020 else
1021  mp(1:ni,nj+1)=m(1:ni,nj)
1022 endif
1023 
1024 return
1025 

The documentation for this interface was generated from the following file: