Help with ROMS Installation

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
sittisak
Posts: 3
Joined: Mon Mar 18, 2013 10:11 pm
Location: KMUTT

Help with ROMS Installation

#1 Unread post by sittisak »

Please help !!
I was found the problem about the compiler in ROMS.
I was trying to compile ROMS on my Linux computer. At first I used compiler (gfortran) and it had an error message " This module file was not generated by any release of this compiler".
I will show you about my code to compiler:

Code: Select all

ROMS/Bin/cpp_clean /home/roms/main/roms/projects/gulfthailand/Build/esmf_roms.f90
cd /home/roms/main/roms/projects/gulfthailand/Build; /home/roms/main/mpich2/mpich2-install/bin/mpif90 -c -frepack-arrays -O3 -ffast-math -I/usr/local/mct/include esmf_roms.f90
cd /home/roms/main/roms/projects/gulfthailand/Build; /home/roms/main/mpich2/mpich2-install/bin/mpif90 -c -frepack-arrays -O3 -ffast-math -I/usr/local/mct/include master.f90
/home/roms/main/mpich2/mpich2-install/bin/mpif90 -frepack-arrays -O3 -ffast-math -I/usr/local/mct/include  /home/roms/main/roms/projects/gulfthailand/Build/roms_import.o /home/roms/main/roms/projects/gulfthailand/Build/propagator.o /home/roms/main/roms/projects/gulfthailand/Build/master.o /home/roms/main/roms/projects/gulfthailand/Build/roms_export.o /home/roms/main/roms/projects/gulfthailand/Build/ocean_coupler.o /home/roms/main/roms/projects/gulfthailand/Build/esmf_roms.o /home/roms/main/roms/projects/gulfthailand/Build/ocean_control.o -o /home/roms/main/roms/projects/gulfthailand/oceanM /home/roms/main/roms/projects/gulfthailand/Build/libUTIL.a /home/roms/main/roms/projects/gulfthailand/Build/libNLM.a /home/roms/main/roms/projects/gulfthailand/Build/libNLM_bio.a /home/roms/main/roms/projects/gulfthailand/Build/libNLM_sed.a /home/roms/main/roms/projects/gulfthailand/Build/libANA.a /home/roms/main/roms/projects/gulfthailand/Build/libUTIL.a /home/roms/main/roms/projects/gulfthailand/Build/libMODS.a -L/usr/local/bin/netcdf.v4.1.3/lib -lnetcdff -lnetcdf -L/usr/local/mct/lib -lmct -lmpeu
/usr/bin/ld: cannot find -lmct
/usr/bin/ld: cannot find -lmpeu
collect2: error: ld returned 1 exit status
make: *** [/home/roms/main/roms/projects/gulfthailand/oceanM] Error 1
Thanks so much!!

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

Re: Help with ROMS Installation

#2 Unread post by kate »

The attempt to link to those two libraries comes from Compilers/Linux-gfortran.mk:

Code: Select all

ifdef USE_MCT
       MCT_INCDIR ?= /usr/local/mct/include
       MCT_LIBDIR ?= /usr/local/mct/lib
           FFLAGS += -I$(MCT_INCDIR)
             LIBS += -L$(MCT_LIBDIR) -lmct -lmpeu
endif
The USE_MCT flag gets set in Compilers/make_macros.h if MCT_LIB is on:

Code: Select all

#ifdef MCT_LIB
  USE_MCT := on
#else
  USE_MCT :=
#endif
Are you trying to run ROMS standalone or coupled to something else with MCT? If the latter, you need to build MCT and point to it with MCT_INCDIR and MCT_LIBDIR.

Post Reply