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

Fortran 2018 standard issues #78

Closed
thomas-robinson opened this issue Mar 18, 2021 · 10 comments
Closed

Fortran 2018 standard issues #78

thomas-robinson opened this issue Mar 18, 2021 · 10 comments
Assignees

Comments

@thomas-robinson
Copy link
Member

thomas-robinson commented Mar 18, 2021

While compiling with the gfortran 10.2.0 compiler, I encountered this set of warnings

/home/Thomas.Robinson/AM4/AM4/src/GFDL_atmos_cubed_sphere/tools/fv_nudge.F90:804:44:

  804 | 666   ps_dt(i,j) = pst**(1./kappa) - ps(i,j)
      |                                            1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 666 at (1)
/home/Thomas.Robinson/AM4/AM4/src/GFDL_atmos_cubed_sphere/GFDL_tools/fv_ada_nudge.F90:1037:44:

 1037 | 666   ps_dt(i,j) = pst**(1./kappa) - ps(i,j)
      |                                            1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 666 at (1)

/root/AM4/src/GFDL_atmos_cubed_sphere/tools/fv_diagnostics.F90:5055:19:

 5055 |       do 500 i=1,im
      |                   1
Warning: Fortran 2018 deleted feature: Shared DO termination label 500 at (1)
/root/AM4/src/GFDL_atmos_cubed_sphere/tools/fv_diagnostics.F90:5056:39:

 5056 | 500   a6(i,k) = delp(i,k-1) + delp(i,k)
      |                                       1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 500 at (1)
/root/AM4/src/GFDL_atmos_cubed_sphere/tools/fv_diagnostics.F90:5059:20:

 5059 |       do 1000 i=1,im
      |                    1
Warning: Fortran 2018 deleted feature: Shared DO termination label 1000 at (1)
/root/AM4/src/GFDL_atmos_cubed_sphere/tools/fv_diagnostics.F90:5064:20:

 5064 |       do 1220 i=1,im
      |                    1
Warning: Fortran 2018 deleted feature: Shared DO termination label 1220 at (1)

@lharris4
Copy link
Contributor

lharris4 commented Mar 18, 2021 via email

@climbfuji
Copy link

Thanks Lucas, I appreciate that you are looking at this. I have seen these compiler warnings and wanted to fix them for quite a while.

@bensonr
Copy link
Contributor

bensonr commented Mar 18, 2021

@thomas-robinson please work with @laurenchilutti to systematically work through these F18 issues.

@thomas-robinson
Copy link
Member Author

I updated the original issue with a "complete" list of Fortran 2018 warnings.

@thomas-robinson
Copy link
Member Author

@laurenchilutti @bensonr Where do you suggest I start from? master? dev/gfdl?

@lharris4
Copy link
Contributor

lharris4 commented Mar 18, 2021 via email

@bensonr
Copy link
Contributor

bensonr commented Mar 18, 2021

After conversations with @thomas-robinson and @lharris4, the changes will be implemented in the private gitlab fork within the GFDL hierarchy. The changes once vetted will be brought into NOAA-GFDL::master and pushed to dev/emc. At this point we'll also synchronize things with dev/gfdl.

@laurenchilutti
Copy link
Contributor

A merge request has been submitted on Gitlab.

@bensonr
Copy link
Contributor

bensonr commented Oct 6, 2021

need to merge master -> dev/gfdl

@laurenchilutti
Copy link
Contributor

Issue addressed via merge of minor updates from GFDL Weather and Climate Dynamics Division on October 6 2021 (commit 94e9f2c)

climbfuji pushed a commit to climbfuji/GFDL_atmos_cubed_sphere that referenced this issue Apr 24, 2024
…ring_exp

pull in mapz implementation for T/PT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants