Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve compiler build 'remarks' #1199

Closed
MatthewMasarik-NOAA opened this issue Mar 1, 2024 · 8 comments · Fixed by #1201
Closed

Resolve compiler build 'remarks' #1199

MatthewMasarik-NOAA opened this issue Mar 1, 2024 · 8 comments · Fixed by #1201
Assignees
Labels
bug Something isn't working

Comments

@MatthewMasarik-NOAA
Copy link
Collaborator

MatthewMasarik-NOAA commented Mar 1, 2024

Describe the bug
When building WW3 there are a few compiler remarks that should be resolved.

To Reproduce
Compile WW3 then grep through the build log for remark.

Expected behavior
Compiling should not produce any error/warning/remark/etc messages.

Screenshots

[hfe07 WW3(fix-remarks/dev/ufs-weather-model)]$ grep 'remark' build.log 
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3arrymd.F90(2255): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3arrymd.F90(2256): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3arrymd.F90(2253): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3gridmd.F90(6360): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3tidemd.F90(826): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3tidemd.F90(830): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3wavemd.F90(414): remark #6536: All symbols from this module are already visible due to another USE; the ONLY clause will have no effect. Rename clauses, if any, will be honored.   [W3ODATMD]
/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/ww3_outf.F90(2426): remark #8291: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+7'.
[hfe07 WW3(fix-remarks/dev/ufs-weather-model)]$ 

Additional context

@MatthewMasarik-NOAA MatthewMasarik-NOAA added the bug Something isn't working label Mar 1, 2024
@MatthewMasarik-NOAA MatthewMasarik-NOAA self-assigned this Mar 1, 2024
@MatthewMasarik-NOAA
Copy link
Collaborator Author

MatthewMasarik-NOAA commented Mar 1, 2024

Status

I've currently resolved all the remarks except the two in file, w3tidemd.F90, which involve the field width on a READ.

@JessicaMeixner-NOAA
Copy link
Collaborator

@MatthewMasarik-NOAA can we address these in the develop branch and then merge to dev/ufs-weather-model?

@MatthewMasarik-NOAA
Copy link
Collaborator Author

@mickaelaccensi, I was curious if you could comment on the following code. For the two READs below, would it be OK with you to adjust the field width for the E descriptors so they satisfy 'W>=D+7'?

WW3/model/src/w3tidemd.F90

Lines 824 to 832 in e085bcf

!
DO K=1,10
READ(KR1,'(4X,A5,E16.10,i5)')TIDE_KONAN(K),TIDE_SIGAN(K),TIDE_NINF(k)
! write(6,1010)TIDE_KONAN(K),TIDE_SIGAN(K),TIDE_NINF(k)
IF (TIDE_KONAN(K).EQ.KBLANK) EXIT
do k2=1,TIDE_NINF(k)
read(kr1,'(4X,A5,E16.10,2F10.3)') TIDE_KONIN(K,k2),TIDE_SIGIN(K,k2),TIDE_R(K,k2),TIDE_ZETA(K,k2)
END DO
END DO

Satisfying the equality would take E16.10 to E17.10, and change the two READs to this:

READ(KR1,'(4X,A5,E17.10,i5)')TIDE_KONAN(K),TIDE_SIGAN(K),TIDE_NINF(k)

and

read(kr1,'(4X,A5,E17.10,2F10.3)') TIDE_KONIN(K,k2),TIDE_SIGIN(K,k2),TIDE_R(K,k2),TIDE_ZETA(K,k2)

@MatthewMasarik-NOAA
Copy link
Collaborator Author

@MatthewMasarik-NOAA can we address these in the develop branch and then merge to dev/ufs-weather-model?

@JessicaMeixner-NOAA, yes I think that should be straightforward. I'll confirm the compiler output for the develop branch and update the header accordingly.

@mickaelaccensi
Copy link
Collaborator

it should be fine. You can double check it works by running ww3_tp2.18.

Further in the code, it is even written in F12.9 format ....

            write(lp,79) TIDE_KONIN(k,k2),TIDE_SIGIN(k,k2),TIDE_ampci(k,k2,idef), &
                 TIDE_phgi(k,k2,idef)
79          format(5x,a5,4x,f12.9,15x,f10.4,5x,f10.4)

@MatthewMasarik-NOAA
Copy link
Collaborator Author

that's great to hear. thanks @mickaelaccensi for your quick reply. I'll do the check of ww3_tp2.18 -- thanks for that suggestion!

@MatthewMasarik-NOAA MatthewMasarik-NOAA changed the title Resolve compiler remarks in dev/ufs-weather-model Resolve compiler build 'remarks' Mar 7, 2024
@MatthewMasarik-NOAA
Copy link
Collaborator Author

MatthewMasarik-NOAA commented Mar 7, 2024

update

'dev/ufs-weather-model branch' has be taken out of the title and header. A PR with fixes for this issue will be submitted to the develop branch first, then synced from develop into dev/ufs-weather-model.

@MatthewMasarik-NOAA
Copy link
Collaborator Author

note

The USE statement that generate this remark in dev/ufs-weather-model

/scratch1/NCEPDEV/climate/Matthew.Masarik/projs/UFS/support/WW3/model/src/w3wavemd.F90(414): remark #6536: All symbols from this module are already visible due to another USE; the ONLY clause will have no effect. Rename clauses, if any, will be honored.   [W3ODATMD]

is not found in the develop branch, so will need to be added in when syncing into dev/ufs-weather-model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants