Problem compiling SSW_BBL, or MB_BBL, or SG_BBL (develop)

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
stlaur
Posts: 35
Joined: Sun Jun 27, 2010 8:45 pm
Location: Old Dominion University

Problem compiling SSW_BBL, or MB_BBL, or SG_BBL (develop)

#1 Unread post by stlaur »

Good morning, I would like to report a problem compiling ROMS with SSW_BBL, or MB_BBL, or SG_BBL.
Today's (14 May 2025) "develop" branch produces the following compilation errors.
(This is with ifx and the default Linux-ifx.mk file.)

With SOLVE3D, SEDIMENT, and SSW_BBL:

Code: Select all

cd /ches/home00/pierre/test/Build_romsM; /usr/local/james/oneapi-2024.0/openmpi-4.1.6-3cwg7q/bin/mpif90 -c -fp-model precise -heap-arrays -O3 -traceback bbl.f90
bbl.f90(499): error #6404: This name does not have a type, and must have an explicit type.   [IDTBL]
          bottom(i,j,idtbl)=thck_wbl(i,j)
---------------------^
bbl.f90(500): error #6404: This name does not have a type, and must have an explicit type.   [IDPCX] 
          bottom(i,j,idpcx)=phic(i,j)
---------------------^
bbl.f90(501): error #6404: This name does not have a type, and must have an explicit type.   [IDPWC]
          bottom(i,j,idpwc)=phicw(i,j)
---------------------^
compilation aborted for bbl.f90 (code 1)
make: *** [ROMS/Nonlinear/BBL/Module.mk:14: /ches/home00/pierre/test/Build_romsM/bbl.o] Error 1
make: *** Waiting for unfinished jobs....
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
GNU Build script command:      build_roms.csh -j 4
ROMS source directory:         /ches/home00/pierre/ROMS/rutgers_roms_develop20250514
ROMS header file:              /ches/home00/pierre/test/minimal.h
ROMS build  directory:         /ches/home00/pierre/test/Build_romsM
ROMS executable:               /ches/home00/pierre/test/romsM
ROMS Application:              MINIMAL
Fortran compiler:              ifx
Fortran flags:                 -fp-model precise -heap-arrays -O3 -traceback
Added CPP Options:             
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
With SOLVE3D, SEDIMENT, and MB_BBL *or* SG_BBL:

Code: Select all

cd /ches/home00/pierre/test/Build_romsM; /usr/local/james/oneapi-2024.0/openmpi-4.1.6-3cwg7q/bin/mpif90 -c -fp-model precise -heap-arrays -O3 -traceback bbl_output.f90
bbl_output.f90(794): error #6792: The rank of the allocate-shape-spec-list differs from the rank of the allocate-object.   [WRK2D]
            allocate ( wrk2d(LBi:UBi, LBj:UBj) )
-----------------------^
bbl_output.f90(795): error #6351: The number of subscripts is incorrect.   [WRK2D]
            wrk2d(LBi:UBi,LBj:UBj)=0.0_r8
------------^
bbl_output.f90(797): error #6366: The shapes of the array expressions do not conform.   [WRK2D]
          wrk2d=SQRT(BBL(ng)%bustrcwmax*BBL(ng)%bustrcwmax+             &
----------^
bbl_output.f90(800): error #6284: There is no matching specific function for this generic function reference.   [NF_FWRITE2D]
          status=nf_fwrite2d(ng, model, S(ng)%ncid, idUVwc,             &
-----------------^
compilation aborted for bbl_output.f90 (code 1)
make: *** [ROMS/Nonlinear/BBL/Module.mk:14: /ches/home00/pierre/test/Build_romsM/bbl_output.o] Error 1
make: *** Waiting for unfinished jobs....
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
GNU Build script command:      build_roms.csh -j 4
ROMS source directory:         /ches/home00/pierre/ROMS/rutgers_roms_develop20250514
ROMS header file:              /ches/home00/pierre/test/minimal.h
ROMS build  directory:         /ches/home00/pierre/test/Build_romsM
ROMS executable:               /ches/home00/pierre/test/romsM
ROMS Application:              MINIMAL
Fortran compiler:              ifx
Fortran flags:                 -fp-model precise -heap-arrays -O3 -traceback
Added CPP Options:
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
ROMS compiles without problem if I only have SOLVE3D and SEDIMENT.

Thanks for your time. Pierre

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

Re: Problem compiling SSW_BBL, or MB_BBL, or SG_BBL (develop)

#2 Unread post by arango »

Yes, use the branch feature/sediment, which is up to date with the develop branch.

Code: Select all

> git pull
> git checkout feature/sediment
> git pull
Then, compile your application. It should work.

I'm finishing a couple of branches: wec and sediment, which I will merge into the develop branch soon.

Post Reply