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

Debug checks output unreadable writes #590

Open
gold2718 opened this issue Sep 20, 2024 · 0 comments
Open

Debug checks output unreadable writes #590

gold2718 opened this issue Sep 20, 2024 · 0 comments
Labels

Comments

@gold2718
Copy link
Collaborator

Description

In the following code snipped (from the ccpp_temp_suite_cap.F90 generated from the capgen test). There are multiple writes to errmsg but only the last one has an effect.

Steps to Reproduce

Provide the tag or hash of the CCPP Framework used to reproduce the bug
Have you make any modifications to the CCPP Framework code?

Please provide detailed steps for reproducing the issue.

  1. Check out the develop branch (I used af90b94)
  2. From the ccpp root, run ./test/capgen_test/run_test --cleanup NEVER
  3. Look at ct_build/ccpp/ccpp_temp_suite_cap.F90

Output

         ! ##################################################################
         ! Begin debug tests
         ! ##################################################################

         ! Check size of array coeffs
         if (size(coeffs(:)) /= 1*(ncols-1+1)) then
            write(errmsg, '(a)')                                                                  &
                 'In group temp_suite_timestep_initial before setup_coeffs_timestep_init:'
            write(errmsg, '(2(a,i8))') 'for array coeffs, expected size ', 1*(ncols-1+1),         &
                 ' but got ', size(coeffs)
            errflg = 1
            return
         end if
@gold2718 gold2718 added the bug label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant