Skip to content
Snippets Groups Projects
Commit 50520669 authored by Sebastien Masson's avatar Sebastien Masson
Browse files

Resolve "bug in the init of the no gather NP folding"

parent 2c2c8a48
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
# - unix variables "$..." are accpeted and will be evaluated before calling fcm. # - unix variables "$..." are accpeted and will be evaluated before calling fcm.
# - fcm variables are starting with a % (and not a $) # - fcm variables are starting with a % (and not a $)
# #
%XIOS_HOME $CCCWORKDIR/xios-2.5 %XIOS_HOME $CCCWORKDIR/xios-trunk
%OASIS_HOME $CCCWORKDIR/now/models/oa3mct %OASIS_HOME $CCCWORKDIR/now/models/oa3mct
%NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR %NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
# - unix variables "$..." are accpeted and will be evaluated before calling fcm. # - unix variables "$..." are accpeted and will be evaluated before calling fcm.
# - fcm variables are starting with a % (and not a $) # - fcm variables are starting with a % (and not a $)
# #
%XIOS_HOME $CCCWORKDIR/xios-2.5 %XIOS_HOME $CCCWORKDIR/xios-trunk
%OASIS_HOME $CCCWORKDIR/now/models/oa3mct %OASIS_HOME $CCCWORKDIR/now/models/oa3mct
%NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR %NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# - unix variables "$..." are accpeted and will be evaluated before calling fcm. # - unix variables "$..." are accpeted and will be evaluated before calling fcm.
# - fcm variables are starting with a % (and not a $) # - fcm variables are starting with a % (and not a $)
# #
%XIOS_HOME $CCCWORKDIR/xios-2.5_gcc %XIOS_HOME $CCCWORKDIR/xios-trunk_gcc
%OASIS_HOME $CCCWORKDIR/now/models/oa3mct %OASIS_HOME $CCCWORKDIR/now/models/oa3mct
%NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR %NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# - unix variables "$..." are accpeted and will be evaluated before calling fcm. # - unix variables "$..." are accpeted and will be evaluated before calling fcm.
# - fcm variables are starting with a % (and not a $) # - fcm variables are starting with a % (and not a $)
# #
%XIOS_HOME $CCCWORKDIR/xios-2.5_gcc %XIOS_HOME $CCCWORKDIR/xios-trunk_gcc
%OASIS_HOME $CCCWORKDIR/now/models/oa3mct %OASIS_HOME $CCCWORKDIR/now/models/oa3mct
%NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR %NCDF_INC -I$NETCDFFORTRAN_INCDIR -I$NETCDF_INCDIR
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#--------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------
# #
# #
%XIOS_HOME $WORK/xios-2.5 %XIOS_HOME $WORK/xios-trunk
%OASIS_HOME %OASIS_HOME
%NCDF_INC %NCDF_INC
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#--------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------
# #
# #
%XIOS_HOME $WORK/xios-2.5 %XIOS_HOME $WORK/xios-trunk
%OASIS_HOME %OASIS_HOME
%NCDF_INC %NCDF_INC
......
...@@ -30,32 +30,31 @@ ...@@ -30,32 +30,31 @@
# - unix variables "$..." are accpeted and will be evaluated before calling fcm. # - unix variables "$..." are accpeted and will be evaluated before calling fcm.
# - fcm variables are starting with a % (and not a $) # - fcm variables are starting with a % (and not a $)
# #
%NCDF_HOME /usr/local/netcdf #%HDF5_HOME $HOME/MODNUM/util/hdf5-1.8.13
%HDF5_HOME /usr/local/hdf5 #%NCDF_C_HOME $HOME/MODNUM/util/netcdf-c-4.3.3.1
%XIOS_HOME $HOME/xios-2.5 #%NCDF_F_HOME $HOME/MODNUM/util/netcdf-fortran-4.4.2
%OASIS_HOME /not/defined #%XIOS_HOME $HOME/MODNUM/xios-trunk
%NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include %NCDF_INC -I%NCDF_F_HOME/include -I%NCDF_C_HOME/include -I%HDF5_HOME/include
%NCDF_LIB -L%NCDF_HOME/lib -lnetcdff -lnetcdf %NCDF_LIB -L%NCDF_F_HOME/lib -lnetcdff -L%NCDF_C_HOME/lib -lnetcdf
%XIOS_INC -I%XIOS_HOME/inc %XIOS_INC -I%XIOS_HOME/inc
%XIOS_LIB -L%XIOS_HOME/lib -lxios -L/usr/lib/gcc/x86_64-linux-gnu/5 -lstdc++ %XIOS_LIB -L%XIOS_HOME/lib -lxios -lstdc++
%OASIS_INC -I%OASIS_HOME/build/lib/mct -I%OASIS_HOME/build/lib/psmile.MPI1 %OASIS_INC -I%OASIS_HOME/build/lib/mct -I%OASIS_HOME/build/lib/psmile.MPI1
%OASIS_LIB -L%OASIS_HOME/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip %OASIS_LIB -L%OASIS_HOME/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip
%CPP cpp -Dkey_nosignedzero %CPP cpp -Dkey_nosignedzero
%FC /usr/bin/mpif90 -c -cpp %FC mpif90 -c -cpp
%FCFLAGS -fdefault-real-8 -O3 -funroll-all-loops -fcray-pointer -ffree-line-length-none %FCFLAGS -fdefault-real-8 -O3 -funroll-all-loops -fcray-pointer -ffree-line-length-none
%FFLAGS %FCFLAGS %FFLAGS %FCFLAGS
#%LD /usr/bin/mpif90 -Wl,-rpath=$HOME/INSTALL/lib:/usr/lib %LD mpif90
%LD /usr/bin/mpif90
%LDFLAGS %LDFLAGS
%FPPFLAGS -P -C -traditional %FPPFLAGS -P -C -traditional
%AR ar %AR ar
%ARFLAGS rs %ARFLAGS rs
%MK make %MK make
%USER_INC %XIOS_INC %OASIS_INC %NCDF_INC %USER_INC %XIOS_INC %NCDF_INC
%USER_LIB %XIOS_LIB %OASIS_LIB %NCDF_LIB %USER_LIB %XIOS_LIB %NCDF_LIB
%CC cc %CC cc
%CFLAGS -O0 %CFLAGS -O0
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
# #
%NCDF_HOME /opt/local %NCDF_HOME /opt/local
%HDF5_HOME /opt/local %HDF5_HOME /opt/local
%XIOS_HOME /Users/$( whoami )/xios-2.5 %XIOS_HOME /Users/$( whoami )/xios-trunk
%OASIS_HOME /not/defined %OASIS_HOME /not/defined
%NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include %NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
# #
%NCDF_HOME /opt/local %NCDF_HOME /opt/local
%HDF5_HOME /opt/local %HDF5_HOME /opt/local
%XIOS_HOME /Users/$( whoami )/xios-2.5 %XIOS_HOME /Users/$( whoami )/xios-trunk
%OASIS_HOME /not/defined %OASIS_HOME /not/defined
%NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include %NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include
......
...@@ -213,7 +213,7 @@ ...@@ -213,7 +213,7 @@
IF( c_NFtype == 'F' .AND. iig == 1 ) THEN IF( c_NFtype == 'F' .AND. iig == 1 ) THEN
ij1 = jpj - khls ! j-index in the receiving array ij1 = jpj - khls ! j-index in the receiving array
ij2 = 1 ! only 1 line in the buffer ij2 = 1 ! only 1 line in the buffer
DO ji = mi0(khls), mi1(khls) DO ji = mi0(khls), mi1(khls) ! change because of EW periodicity as we also change jpiglo-khls
iib = nfd_jisnd(mi0( khls),iig) ! i-index in the buffer iib = nfd_jisnd(mi0( khls),iig) ! i-index in the buffer
iin = nfd_rksnd(mi0( khls),iig) ! neigbhour-index in the buffer iin = nfd_rksnd(mi0( khls),iig) ! neigbhour-index in the buffer
IF( nfd_rknei(iin) == -1 .AND. kfillmode == jpfillnothing ) CYCLE IF( nfd_rknei(iin) == -1 .AND. kfillmode == jpfillnothing ) CYCLE
......
...@@ -1292,6 +1292,7 @@ ENDIF ...@@ -1292,6 +1292,7 @@ ENDIF
REAL(wp), DIMENSION(jpi,jpj,2,4) :: zinfo REAL(wp), DIMENSION(jpi,jpj,2,4) :: zinfo
INTEGER , DIMENSION(10) :: irknei ! too many elements but safe... INTEGER , DIMENSION(10) :: irknei ! too many elements but safe...
INTEGER :: ji, jj, jg, jn ! dummy loop indices INTEGER :: ji, jj, jg, jn ! dummy loop indices
INTEGER :: iitmp
LOGICAL :: lnew LOGICAL :: lnew
!!---------------------------------------------------------------------- !!----------------------------------------------------------------------
! !
...@@ -1361,8 +1362,13 @@ ENDIF ...@@ -1361,8 +1362,13 @@ ENDIF
ALLOCATE( nfd_rknei(nfd_nbnei) ) ALLOCATE( nfd_rknei(nfd_nbnei) )
nfd_rknei(:) = irknei(1:nfd_nbnei) nfd_rknei(:) = irknei(1:nfd_nbnei)
! re-number nfd_rksnd according to the indexes of nfd_rknei ! re-number nfd_rksnd according to the indexes of nfd_rknei
DO jn = 1, nfd_nbnei DO jg = 1, 4
WHERE( nfd_rksnd == nfd_rknei(jn) ) nfd_rksnd = jn DO ji = 1, jpi
iitmp = nfd_rksnd(ji,jg) ! must store a copy of nfd_rksnd(ji,jg) to make sure we don't change it twice
DO jn = 1, nfd_nbnei
IF( iitmp == nfd_rknei(jn) ) nfd_rksnd(ji,jg) = jn
END DO
END DO
END DO END DO
IF( ldwrtlay ) THEN IF( ldwrtlay ) THEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment