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

Cray compiler warnings #22

Open
andreww opened this issue Oct 15, 2012 · 1 comment
Open

Cray compiler warnings #22

andreww opened this issue Oct 15, 2012 · 1 comment
Milestone

Comments

@andreww
Copy link
Owner

andreww commented Oct 15, 2012

Elena Breitmoser reports warnings with the Cray Fortran 8.0.4 compiler with FoX 4.1.2:

     s2(m:) = s(s_i:k)

ftn-7212 crayftn: WARNING SCALARTOSTRING, File =
fox_m_fsys_parse_input.F90, Line = 92
Variable "m" is used before it is defined.

     s2(m:) = s(s_i:k)

ftn-7212 crayftn: WARNING ARRAYTOSTRING, File =
fox_m_fsys_parse_input.F90, Line = 802
Variable "m" is used before it is defined.

     s2(m:) = s(s_i:k)

ftn-7212 crayftn: WARNING MATRIXTOSTRING, File =
fox_m_fsys_parse_input.F90, Line = 955
Variable "m" is used before it is defined.

     s2(m:) = s(s_i:k)

ftn-7212 crayftn: WARNING COUNTSTRING, File =
fox_m_fsys_count_parse_input.F90, Line = 74
Variable "m" is used before it is defined.

subroutine cmlAddParticlessp_sh(xf, natoms, elements, atomRefs,
coords, occupancies, atomIds, style,
fmt)
ftn-7212 crayftn: WARNING CMLADDPARTICLESSP_SH, File =
m_wcml_molecule.F90, Line = 553
Variable "natoms" is used before it is defined.

subroutine cmlAddParticles_3_sp_sh(xf, natoms, elements, x, y, z,
atomRefs, occupancies, atomIds,
style, fmt)
ftn-7212 crayftn: WARNING CMLADDPARTICLES_3_SP_SH, File =
m_wcml_molecule.F90, Line = 642
Variable "natoms" is used before it is defined.

subroutine cmlAddParticlesdp_sh(xf, natoms, elements, atomRefs,
coords, occupancies, atomIds, style,
fmt)
ftn-7212 crayftn: WARNING CMLADDPARTICLESDP_SH, File =
m_wcml_molecule.F90, Line = 1270
Variable "natoms" is used before it is defined.

subroutine cmlAddParticles_3_dp_sh(xf, natoms, elements, x, y, z,
atomRefs, occupancies, atomIds,
style, fmt)
ftn-7212 crayftn: WARNING CMLADDPARTICLES_3_DP_SH, File =
m_wcml_molecule.F90, Line = 1359

Check and debug if needed.

@andreww
Copy link
Owner Author

andreww commented Jan 1, 2013

The warnings in m_wcml_molecule.F90 look bogus - natoms is an intent(in) dummy argument so it must be defined in these four places. Also, gfortran does not give the same warning with -Wall (it does for m in fox_m_fsys_parse_input).

Gfortran does produce some other warnings (unused arguments in the new inputdec stuff) which are real bugs which are now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant