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

Small fixes for test cases that fail under gfortran #222

Merged
merged 6 commits into from
Nov 3, 2021

Conversation

sit23
Copy link
Contributor

@sit23 sit23 commented Aug 27, 2021

As described in #221, some of the test cases are failing when run under gfortran. I've identified and fixed two of these 3 issues, and am working on the 3rd. The changes are as follows:

  • The axisymmetric case was failing because we were supplying dt_rad as a float when it should have been an integer. Intel didn’t mind this, but gfortran objects.
  • The Top down test seg-faulted because one of the loops over the y dimension was looping over the length of the x dimension instead
  • I’ve had a look at the giant-planet test case to see if I can see anything obvious. I’ve made a few changes that might help, but I’d need to get a working example of what the problem is before I can make too much progress.

I'm running the trip tests on these now to see what progress I might have made, but as they all failed previously, this is more just to check that they now run.

sit23 added 4 commits August 27, 2021 14:23
…-rad variable is supplied as a float when it should be an integrer. Intel accepts this, but gfortran does not. Changing input to an integer fixes the problem.
@RuthG
Copy link

RuthG commented Aug 27, 2021

Nice! Looks good at a glance, happy to review next week once the trip tests confirm it's all working :)

@dennissergeev dennissergeev added bug infrastructure Isca infrastructure: installation, CI, HPC setups priority:medium Medium-piority task tests labels Aug 28, 2021
@sit23
Copy link
Contributor Author

sit23 commented Oct 17, 2021

I've finally got back to running the trip tests properly for this p/r. I've run the tests for an intel compiler and the gfortran compiler. The results for the intel compiler are as follows:

Results for all of the test cases ran comparing 403f230 and 809b9a3 are as follows...
axisymmetric : pass
bucket_model : pass
frierson : pass
giant_planet : pass
held_suarez : pass
MiMA : pass
realistic_continents_fixed_sst : pass
realistic_continents_variable_qflux : pass
socrates_aquaplanet : pass
socrates_aquaplanet_cloud : pass
top_down_test : pass
variable_co2_grey : pass
variable_co2_rrtm : pass
ape_aquaplanet : pass
Congratulations, all tests have passed

All the tests have passed, so these modifications make no difference to the running of the code under intel compilation.

@sit23
Copy link
Contributor Author

sit23 commented Oct 17, 2021

I also ran the tests under gfortran compilation:

Results for all of the test cases ran comparing 403f230 and 809b9a3 are as follows...
axisymmetric : pass
bucket_model : pass
frierson : pass
giant_planet : pass
held_suarez : pass
MiMA : pass
realistic_continents_fixed_sst : pass
realistic_continents_variable_qflux : pass
socrates_aquaplanet : fail
socrates_aquaplanet_cloud : fail
top_down_test : fail
variable_co2_grey : pass
variable_co2_rrtm : pass
ape_aquaplanet : fail
Nightmare, some tests have failed

There were 4 fails, all of which are because the current version of the master (403f230) fails to run those test cases with gfortran. But all of these problems should be fixed by this p/r. The other tests passing is further confirmation that these modifications work alright. I'm therefore happy that the trip tests are clean, and it'd be great if these changes could be merged in soon.

@sit23
Copy link
Contributor Author

sit23 commented Oct 17, 2021

@RuthG - now that I've put up the trip test results, would you be happy to review this for me?

@sit23 sit23 requested a review from RuthG October 17, 2021 14:40
@sit23 sit23 requested review from ntlewis and removed request for RuthG October 19, 2021 09:07
@RuthG
Copy link

RuthG commented Nov 1, 2021

Looks good to me!

@sit23
Copy link
Contributor Author

sit23 commented Nov 3, 2021

Thanks @RuthG - would you mind doing a review and approving it so that I can merge it in? Thanks!

@sit23 sit23 requested a review from RuthG November 3, 2021 11:07
Copy link

@RuthG RuthG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are minor bug fixes, confirmed not to influence trip tests on intel compilers. I am happy for these to be merged in, thanks for spotting it all Stephen! :)

@sit23 sit23 merged commit 5842293 into ExeClim:master Nov 3, 2021
@sit23
Copy link
Contributor Author

sit23 commented Nov 3, 2021

Thanks @RuthG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug infrastructure Isca infrastructure: installation, CI, HPC setups priority:medium Medium-piority task tests trip tests passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants