ewperiodic conflicts with symbol from module 'mod_scalars'

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
salik
Posts: 16
Joined: Tue Jan 14, 2014 3:02 pm
Location: Geological Survey of Denmark and Greenland

ewperiodic conflicts with symbol from module 'mod_scalars'

#1 Unread post by salik »

While trying to compile a modified version of the Upwelling case, using openMPI and the following CPP options:
#define UV_ADV
#define UV_COR
#undef UV_LDRAG
#undef UV_QDRAG
#undef MB_BBL
#undef SG_BBL
#define SSW_BBL
#define SSW_CALC_UB
#define SSW_HUNT_KH

#ifdef SG_BBL
# define SG_CALC_ZNOT
# undef SG_LOGINT
#endif
#ifdef MB_BBL
# define MB_CALC_ZNOT
# undef MB_Z0BIO
# undef MB_Z0BL
# undef MB_Z0RIP
#endif
#ifdef SSW_BBL
# define SSW_CALC_ZNOT
# undef SSW_LOGINT
#endif

#define UV_VIS2
#define UV_SADVECTION
#undef MIX_GEO_UV
#define MIX_S_UV
!#define TS_U3HADVECTION
!#define TS_SVADVECTION
#define TS_MPDATA
!#undef NONLIN_EOS
#define DJ_GRADPS
#define TS_DIF2
#undef TS_DIF4
#undef MIX_GEO_TS
#define MIX_S_TS
#define GLS_MIXING
!#define MY25_MIXING
#define T_PASSIVE

#define SALINITY
#define SOLVE3D
#define SPLINES_VVISC
#define SPLINES_VDIFF
#define RI_SPLINES
#define AVERAGES
#define DIAGNOSTICS_TS
#define DIAGNOSTICS_UV
#define EW_PERIODIC
#define NORTH_TOBC
#define NORTH_FSOBC
#define NORTH_M2OBC
#define NORTH_FSCHAPMAN
#define NORTH_M2FLATHER
#define NORTH_M3RADIATION
#define NORTH_TRADIATION
,

I get the following error message.
analytical.f90:633.27:

logical :: EWperiodic=.TRUE.
1
analytical.f90:605.10:

USE mod_scalars
2
Error: Symbol 'ewperiodic' at (1) conflicts with symbol from module 'mod_scalars', use-associated at (2)
analytical.f90:634.27:

logical :: NSperiodic=.FALSE.
1
analytical.f90:605.10:

USE mod_scalars
2
Error: Symbol 'nsperiodic' at (1) conflicts with symbol from module 'mod_scalars', use-associated at (2)
analytical.f90:1573.27:

logical :: EWperiodic=.TRUE.
1
analytical.f90:1554.10:

USE mod_scalars
2
Error: Symbol 'ewperiodic' at (1) conflicts with symbol from module 'mod_scalars', use-associated at (2)
analytical.f90:1574.27:

logical :: NSperiodic=.FALSE.
1
analytical.f90:1554.10:

USE mod_scalars
2
Error: Symbol 'nsperiodic' at (1) conflicts with symbol from module 'mod_scalars', use-associated at (2)
cd /home/nws747/dwc_model/Inc/Build; /usr/local/bin/mpif90 -c -frepack-arrays -O3 -ffast-math get_idata.f90
analytical.f90:2309.27:

logical :: EWperiodic=.TRUE.
1
analytical.f90:2290.10:

USE mod_scalars
2
Error: Symbol 'ewperiodic' at (1) conflicts with symbol from module 'mod_scalars', use-associated at (2)
analytical.f90:2310.27:

logical :: NSperiodic=.FALSE.
1
analytical.f90:2290.10:

USE mod_scalars
2
Error: Symbol 'nsperiodic' at (1) conflicts with symbol from module 'mod_scalars', use-associated at (2)
analytical.f90:2392.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
analytical.f90:2399.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
analytical.f90:2406.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
analytical.f90:1700.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
analytical.f90:807.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
analytical.f90:824.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
analytical.f90:842.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
analytical.f90:872.40:

& NghostPoints, EWperiodic, NSperiodic, &
1
Error: Rank mismatch in argument 'ew_periodic' at (1) (scalar and rank-1)
make: *** [/home/nws747/dwc_model/Inc/Build/analytical.o] Error 1
make: *** Waiting for unfinished jobs....
From perusing the forums and documentation, I think I have figured out that the problem comes down to the number of ghost points (2 vs 3, where TS_MPDATA requires 3), but I haven't been able to figure out how to correct this problem.
Can anyone help me out?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: ewperiodic conflicts with symbol from module 'mod_scalar

#2 Unread post by kate »

You should tell us exactly which version of ROMS this is. Modern ROMS does not specify boundary conditions like this:

Code: Select all

#define EW_PERIODIC
#define NORTH_TOBC
#define NORTH_FSOBC
#define NORTH_M2OBC
#define NORTH_FSCHAPMAN
#define NORTH_M2FLATHER
#define NORTH_M3RADIATION
#define NORTH_TRADIATION
but rather through the LBC variable. Also, the problem is coming from analytical, but which ANA_xx options are on?

Checking my mod_scalars, I have:

Code: Select all

        logical, allocatable :: EWperiodic(:)
        logical, allocatable :: NSperiodic(:)
      allocate ( EWperiodic(Ngrids) )
      allocate ( NSperiodic(Ngrids) )
Adding the dimension of the number of grids happened several years ago now. Are you trying to use ana_xxx.h files from a prior version?

salik
Posts: 16
Joined: Tue Jan 14, 2014 3:02 pm
Location: Geological Survey of Denmark and Greenland

Re: ewperiodic conflicts with symbol from module 'mod_scalar

#3 Unread post by salik »

Dear Kate

Thank you for the answer. I had installed the newest version of ROMS on a new system, and tried to transfer my model from an older one. It worked fine for OMP, but trying out MPI caused problems.
I have updated all analytical files, and the model runs fine now.
Thank you again

Post Reply