build.bash error

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

build.bash error

#1 Unread post by mashinde »

i am running build.bash and i have following error

cd /home/mahesh/ROMS/src/Projects/medi8/Build; /usr/bin/mpif90 -c -frepack-arrays -O3 -ffast-math get_data.f90
get_data.f90:114.41:

& FORCES(ng) % lrflxG(LBi,LBj,1))
1
Error: 'lrflxg' at (1) is not a member of the 't_forces' structure
make: *** [/home/mahesh/ROMS/src/Projects/medi8/Build/get_data.o] Error 1
make: *** Waiting for unfinished jobs....


can anybody help.

thanks & regards
Mahesh

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

Re: build.bash error

#2 Unread post by kate »

This is detective work. The variable is defined in mod_forces.F, but is protected by:

Code: Select all

# ifdef BULK_FLUXES
#  ifndef LONGWAVE
          real(r8), pointer :: lrflxG(:,:,:)
#  endif
# endif
Then, in get_data.F, we have:

Code: Select all

# if defined BULK_FLUXES && !defined LONGWAVE && !defined LONGWAVE_OUT
!  Surface net longwave radiation.
   ...  &                FORCES(ng) % lrflxG(LBi,LBj,1))
# endif
# if defined BULK_FLUXES && defined LONGWAVE_OUT
!  Surface downwelling longwave radiation.
   ...  &                FORCES(ng) % lrflxG(LBi,LBj,1))
# endif
I assume you have BULK_FLUXES and LONGWAVE and LONGWAVE_OUT. According to cppdefs.h, this combination does not make sense:

Code: Select all

**   There are three ways to provide longwave radiation in the atmospheric   **
**   boundary layer: (1) Compute the net longwave radiation internally using **
**   the Berliand (1952) equation (LONGWAVE) as function of air temperature, **
**   sea surface temperature, relative humidity, and cloud fraction;         **
**   (2) provide (read) longwave downwelling radiation only  and then add    **
**   outgoing longwave radiation (LONGWAVE_OUT) as a function of the model   **
**   sea surface temperature; (3) provide net longwave radiation (default).  **

** LONGWAVE            use if computing net longwave radiation               **
** LONGWAVE_OUT        use if computing ougoing longwave radiation           **

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: build.bash error

#3 Unread post by mashinde »

Thank you Kate !


It works...



Mahesh

Post Reply