Skip to content
Snippets Groups Projects

Fortran Warning Fixes, master branch (2022.03.22.)

All threads resolved!

Made sure that all DO-loops would end in a CONTINUE statement, and that nested DO-loops would not share the same CONTINUE statement. Which apparently are both removed as a possibility from Fortran 2018.

Note that there are a number of places in the code that used to look like the following:

       DO 10 I=1,10
         DO 10 J=1,10
           ...
           IF (<SOMETHING>) GOTO 10
           ...
 10    CONTINUE

I have no idea how this should be fixed. :frowning: Should it be

       DO 10 I=1,10
         DO 20 J=1,10
           ...
           IF (<SOMETHING>) GOTO 10
           ...
 20      CONTINUE
 10    CONTINUE

or

       DO 10 I=1,10
         DO 20 J=1,10
           ...
           IF (<SOMETHING>) GOTO 20
           ...
 20      CONTINUE
 10    CONTINUE

??? I went with the latter one in this MR. But somebody more versed in Fortran should really speak up... :thinking: @ssnyder, are you sure about this part? (After some tests, as shown in the MR's discussion, the latter one turned out to be the correct solution.)

This is meant as a replacement for !51454 (closed), fixing/addressing AGENE-2140 and ATLINFR-4464.

Pinging @fwinkl as well, just for good measure. :stuck_out_tongue:

Edited by Attila Krasznahorkay

Merge request reports

Pipeline #3743260 passed

Pipeline passed for b1fcdaea on akraszna:FortranWarningFixes-master-20220322

Merged by Frank WinklmeierFrank Winklmeier 3 years ago (Mar 22, 2022 5:43pm UTC)

Merge details

  • Changes merged into master with c14034cf (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Attila Krasznahorkay changed the description

    changed the description

  • Attila Krasznahorkay resolved all threads

    resolved all threads

  • :white_check_mark: CI Result SUCCESS (hash b1fcdaea)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis DetCommon
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    required tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    optional tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :white_check_mark: DetCommon: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-CC7 48917]

  • Since my Fortran knowledge goes to zero I am going with the MR that increases the entropy (number of changed lines) by the least amount. So this one here wins over !51454 (closed).

  • mentioned in commit c14034cf

  • Please register or sign in to reply
    Loading