inlet

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
redhat007

inlet

#1 Unread post by redhat007 »

Dear
I a trying to compile inlet test. My platform is fedora 16 mpif90 gfortran mpich2 MCT. Here is the tail of the compiling by

Code: Select all

 ./build.bash –j 8
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include close_io.f90
analytical.f90:804.45:
& OCEAN(ng) % bed, &
1
Error: 'bed' at (1) is not a member of the 't_ocean' structure
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include get_gst.f90
analytical.f90:854.27:

logical :: EWperiodic=.FALSE.
1
Error: Symbol 'ewperiodic' at (1) already has basic type of LOGICAL
analytical.f90:855.27:
logical :: NSperiodic=.FALSE.
1
Error: Symbol 'nsperiodic' at (1) already has basic type of LOGICAL
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include def_gst.f90
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include def_his.f90
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include def_info.f90
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include def_floats.f90
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include def_norm.f90
cd /home/<user>/projects/my_test/INLET_test/inlet_test_1/Build; /home/<user>/mpich2_install_new/bin/mpif90 -c -frepack-arrays -g -fbounds-check -I/home/<user>/MCT_install/include ini_lanczos.f90
analytical.f90:718.22:

IF (EASTERN_EDGE) THEN
1
Error: Symbol 'eastern_edge' at (1) has no IMPLICIT type
analytical.f90:742.23:

IF (NORTHERN_EDGE) THEN
1
Error: Symbol 'northern_edge' at (1) has no IMPLICIT type
analytical.f90:734.23:

IF (SOUTHERN_EDGE) THEN
1
Error: Symbol 'southern_edge' at (1) has no IMPLICIT type
analytical.f90:726.22:

IF (WESTERN_EDGE) THEN
1
Error: Symbol 'western_edge' at (1) has no IMPLICIT type
analytical.f90:327.23:

IF (NORTHERN_EDGE) THEN
1
Error: Symbol 'northern_edge' at (1) has no IMPLICIT type
make: *** [/home/<user>/projects/my_test/INLET_test/inlet_test_1/Build/analytical.o] Error 1
make: *** Waiting for unfinished jobs....

i would be appropriate to receive your help
cheers
mostafa

User avatar
arango
Site Admin
Posts: 1367
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: inlet

#2 Unread post by arango »

You are using an old version of the analytical files with your version of ROMS. Compare your modified ana_*.h with those in the ROMS/Functionals directory. The boundary conditions (periodic) were changed two years ago.

redhat007

Re: inlet

#3 Unread post by redhat007 »

Dear Arango
Thanks for your reply .it solve compiling error :D .
In running step I face with error that I think it is about SWAN model because
1- In .log file there is not anything which shows SWAN model nodes are active and every things are about ocean model (in attached file)
2- After running some Errfiles appear in project directory which contains one sentences similar to Print file, it is:
Terminating error: Inputfile missing
Also after tying run command:

Code: Select all

$ Mpirun –np 6 ./oceanG coupling_inlet_test.in>mpi.log
It says:
MCT::m_MCTWorld::clean_: deallocate(MCTW,...) error, stat =2
MCT::m_MCTWorld::clean_: deallocate(MCTW,...) error, stat =2
MCT::m_MCTWorld::clean_: deallocate(MCTW,...) error, stat =2
MCT::m_MCTWorld::clean_: deallocate(MCTW,...) error, stat =2
MCT::m_MCTWorld::clean_: deallocate(MCTW,...) error, stat =2
MCT::m_MCTWorld::clean_: deallocate(MCTW,...) error, stat =2

It is necessary to say that MCT (source only) and MPI used configure command respectively are

Code: Select all

./configure FC=gfortran CC=gcc  --prefix=/home/<user>/mpich2_install_new 2>&1 |tee c.txt
./configure FC=gfortran CC=gcc CPPFLAGS=-I/home/<user>/MCT LDFLAGS=-L/home/<user>/MCT_install  --prefix==/home/<user>/MCT_install
And after installing MCT I just change its CFLAGS =-g –o3 and FCFLAGS to= –o3 (instead of –o2)
Now I need your experience to solve this problem.
Cheers
redhat
Attachments
mpi.log.txt
(15.52 KiB) Downloaded 256 times

redhat007

Re: inlet

#4 Unread post by redhat007 »

Dear
I like to say that base on posts in forum I have done following steps but my problem has not solved.
1- updated all files in inlet test directory by files which located in trunk/roms/external and trunk/roms/include.
2- gfortran4.6.2 and gcc 4.6.2 have been chosen as compilers for all programs such as NCL,NETCDF,MPI,MCT by using CC=gcc and FC=gfortran in ./configure command.
3-By Choosing Nthreads (waves)=1 and (Ntilei=2 Ntilej=2) Nthreads (ocean)=4 coupled model run by

Code: Select all

mpirun –np 5 ./oceanG coupling_inlet-test.in>mpi.log 
but above problem has not solved and following error appeared:
Application called MPI_Abort 9com=0x84000002,4) –process 0
4-MCT has been installed by

Code: Select all

./configure CC=gcc FC=gfortran CPPFLAGS=-I/home/usr/mct/include LDFLAGS=-L/home/usr/mctcal/lib --prefix=/home/usr/mct
make install
5-change linux_gfortran.k as

Code: Select all

Ifdef USE_MCT
MCT_INCDIR ?=/home/<usr>/MCT-install/include
MCT_LIBDIR ?=/home/<usr>/MCT-install/lib
FFLAGS+=-I$(MCT_INCDIR)
LIBS+=_L$(MCT_LIBDIR) –lmct –lmmeu
endif
And set include and lib directories in ./bashrc and in build.bash files

Code: Select all

Export  MCT_INCDIR =/home/<usr>/MCT-install/include
Export MCT_LIBDIR =/home/<usr>/MCT-install/lib
I will be grateful to receive your help
Cheers
redhat

Post Reply