Compiling problem of inlet_test

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
IBH123
Posts: 9
Joined: Wed Feb 27, 2019 8:24 pm
Location: Stony Brook University

Compiling problem of inlet_test

#1 Unread post by IBH123 »

Hi, I got stuck at compiling of the inlet_test example, meeting the following error. Could anyone help me on it?

Code: Select all

       Null_Value=MPI_PROC_NULL
                              1
Error: Symbol ‘mpi_proc_null’ at (1) has no IMPLICIT type
make: *** [/gpfs/projects/WilsonGroup/ROMS/inlet_test/Build_romsG/mp_exchange.o] Error 1
Also I got a bunch of warnings:

Code: Select all

swanparll.f90:2065:72:

          CALL SWSENDNB ( WORK, NOVLU, SWREAL, IDOM, ITAG )
                                                                        1
Warning: Type mismatch in argument ‘iptr’ at (1); passed REAL(4) to INTEGER(4)
swanparll.f90:2076:72:

          CALL SWRECVNB ( WORK, NOVLU, SWREAL, IDOM, ITAG )
                                                                        1
Warning: Type mismatch in argument ‘iptr’ at (1); passed REAL(4) to INTEGER(4)
swanparll.f90:2226:72:

             CALL SWRECVNB ( WORK, MDC*MSC, SWREAL, IDOM, ITAG )
                                                                        1
Warning: Type mismatch in argument ‘iptr’ at (1); passed REAL(4) to INTEGER(4)
swanparll.f90:2376:72:

             CALL SWSENDNB ( WORK, MDC*MSC, SWREAL, IDOM, ITAG )
                                                                        1
Warning: Type mismatch in argument ‘iptr’ at (1); passed REAL(4) to INTEGER(4)
swanparll.f90:2535:24:

          CALL SWGATHER (IARRC, 5*NPROC, IARRL, 5, SWINT )
                        1
Warning: Rank mismatch in argument ‘ioptr’ at (1) (scalar and rank-2)
swanparll.f90:2543:28:

             CALL SWGATHER ( KGRPTC, ILEN, KGRPNT, MXC*MYC, SWINT )
                            1
Warning: Rank mismatch in argument ‘ioptr’ at (1) (scalar and rank-1)
swanparll.f90:2563:72:

          CALL SWGATHER ( FLDC, ILEN, FIELD, ILEN2, SWREAL )
                                                                        1
Warning: Type mismatch in argument ‘ioptr’ at (1); passed REAL(4) to INTEGER(4)
mp_exchange.f90:106:30:
Thank you very much!

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Compiling problem of inlet_test

#2 Unread post by jcwarner »

the file ROMS/Utility/mp_exchange.F for tile_neighbors has
..
USE mod_parallel
...
# if defined MPI
Null_Value=MPI_PROC_NULL
# else
Null_Value=-1
# endif

and then the
MODULE mod_parallel
...
#ifdef MPI
include 'mpif.h'
#endif

so the mpif.h should be passed to the mp_exchange routines. mpif.h should have
INTEGER MPI_PROC_NULL
PARAMETER (MPI_PROC_NULL=-1)


were there any errors before this? did you set USE_MPI=on ??
-j

IBH123
Posts: 9
Joined: Wed Feb 27, 2019 8:24 pm
Location: Stony Brook University

Re: Compiling problem of inlet_test

#3 Unread post by IBH123 »

Thank you for your explanation Dr. Warner! I have turned on the USE_MPI, and I have seen no other error messages. I attached my build log and bash files.

Could this because of some problem during of the MCT library compiling? I notice that in the MCT include there is an mpif.h. Is this the mpif.h you mentioned? And there seems no lines like

INTEGER MPI_PROC_NULL
PARAMETER (MPI_PROC_NULL=-1)

in that file. I also attached this file and my Makefile.conf. Is there any obvious mistake?
Attachments
Makefile.conf.txt
(2.59 KiB) Downloaded 203 times
mpif.h
(4.73 KiB) Downloaded 201 times
build_roms.sh
(11.93 KiB) Downloaded 205 times
build.log
(329.07 KiB) Downloaded 189 times

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Compiling problem of inlet_test

#4 Unread post by jcwarner »

i am not sure. it looks like you have -DMPI in the cpp. If you want to use the Inlet_test and run wave -current interaction, i suggest you use our COAWST code. we have this on github now:
https://github.com/jcwarner-usgs/COAWST
the setups are very similar.
-j

ariereath

Re: Compiling problem of inlet_test

#5 Unread post by ariereath »

I am also have a problem with the Inlet_test wave-current interactions using COAWST v3.6. I got an error with the analytical sediment solution, so I turned that off in the header file. Now I am getting a bunch of undefined references in master.f90 to `__mct_coupler_params_MOD_allocate_coupler_params'
master.f90: undefined reference to `__mct_coupler_params_MOD_nwav_grids', etc.

Any ideas?

Thanks,
Arie

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Compiling problem of inlet_test

#6 Unread post by jcwarner »

can you create an issue here
https://github.com/jcwarner-usgs/COAWST/issues
and post output of the full build.
it has a problem earlier than what you showed.

ariereath

Re: Compiling problem of inlet_test

#7 Unread post by ariereath »

@jcwarner

I have done so. You can find it here: https://github.com/jcwarner-usgs/COAWST/issues/1

Thanks,
Arie

IBH123
Posts: 9
Joined: Wed Feb 27, 2019 8:24 pm
Location: Stony Brook University

Re: Compiling problem of inlet_test

#8 Unread post by IBH123 »

jcwarner wrote:i am not sure. it looks like you have -DMPI in the cpp. If you want to use the Inlet_test and run wave -current interaction, i suggest you use our COAWST code. we have this on github now:
https://github.com/jcwarner-usgs/COAWST
the setups are very similar.
Thank you Dr. Warner, after some more futile trying I turned to COAWST. But I met some new problems, when I'm trying to run inlet_test :oops:, I can successfully compile the coawst for inlet test for the simplest same grid case. However, it gives the following error

Code: Select all

At line 584 of file swanmain.f90
Fortran runtime error: Allocatable actual argument 'aicef' is not allocated

Error termination. Backtrace:
#0  0x3003c25 in swan_run_
        at /gpfs/projects/WilsonGroup/COAWST/Build/swanmain.f90:584
#1  0x2ea5bd7 in __waves_control_mod_MOD_swan_driver_init
        at /gpfs/projects/WilsonGroup/COAWST/Build/waves_control.f90:93
#2  0x40f5c3 in mct_driver
        at /gpfs/projects/WilsonGroup/COAWST/Build/master.f90:214
#3  0x40fcae in main
        at /gpfs/projects/WilsonGroup/COAWST/Build/master.f90:20


There is no ice module activated in the swan input correct? But why would I got such an error? I have also post this question on the coawst github issues section.

Post Reply