I am trying to get station output in COAWST (revision 917) and have been having problems at the compilation stage. I was wondering if any of you have seen this error before or have been able to get station output with one of the most recent revisions of COAWST.
Thanks in advance,
Gabriel García
Some details:
The only thing I have added to the cppdefs.h file is #define STATIONS, do I need to add something else?
Screen output:
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 592)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 608)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 624)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 640)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 673)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 690)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 707)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 724)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 741)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 822)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 838)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 854)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 870)
PGF90-S-0155-Could not resolve generic procedure netcdf_put_fvar (wrt_station.f90: 886)
PGF90-S-0038-Symbol, staname, has not been explicitly declared (wrt_station.f90)
PGF90-S-0038-Symbol, tstaindx, has not been explicitly declared (wrt_station.f90)
PGF90-S-0038-Symbol, ncstaid, has not been explicitly declared (wrt_station.f90)
PGF90-S-0038-Symbol, stavid, has not been explicitly declared (wrt_station.f90)
0 inform, 0 warnings, 18 severes, 0 fatal for wrt_station
make: *** [/scratch/temp/ggarcia/86-like-80-short-periodic//Build/wrt_station.o] Error 2
These are lines 567 to 599 of wrt_station.f90. The compilation does not complain with vbar_stokes. There are a few calls to variables that are different, among these two output parameters.
Code: Select all
!
! Write out 2D V-momentum Stokes drift velocity.
!
IF (Sout(idV2Sd,ng)) THEN
scale=1.0_r8
CALL extract_sta2d (ng, iNLM, Cgrid, idV2Sd, v2dvar, &
& LBi, UBi, LBj, UBj, &
& scale, OCEAN(ng) % ubar_stokes, &
& Nstation(ng), Xpos, Ypos, psta)
CALL netcdf_put_fvar (ng, iNLM, STA(ng)%name, &
& TRIM(Vname(1,idV2Sd)), psta, &
& (/1,STA(ng)%Rindex/), (/Nstation(ng),1/), &
& ncid = STA(ng)%ncid, &
& varid = STA(ng)%Vid(idV2Sd))
IF (exit_flag.ne.NoError) RETURN
END IF
!
! Write out 2D U-momentum Stokes drift velocity.
!
IF (Sout(idU2Sd,ng)) THEN
scale=1.0_r8
CALL extract_sta2d (ng, iNLM, Cgrid, idU2Sd, u2dvar, &
& LBi, UBi, LBj, UBj, &
& scale, OCEAN(ng) % ubar_stokes, &
& Nstation(ng), Xpos, Ypos, psta)
CALL netcdf_put_fvar (ng, iNLM, STAname(ng), &
& TRIM(Vname(1,idU2Sd)), psta, &
& (/1,tSTAindx(ng)/), (/Nstation(ng),1/), &
& ncid = ncSTAid(ng), &
& varid = staVid(idU2Sd,ng))
IF (exit_flag.ne.NoError) RETURN
END IF
!